File tree 1 file changed +11
-11
lines changed
websocket/binary/src/main/java/org/javaee7/websocket/binary
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- *
2
+ *
3
3
*/
4
4
package org .javaee7 .websocket .binary ;
5
5
12
12
13
13
/**
14
14
* @author Nikolaos Ballas
15
- *
16
15
*/
17
16
@ ClientEndpoint
18
17
public class MyEndpointClient {
19
- @ OnOpen
20
- public void onOpen (Session session ){
21
- System .out .println ("[Action]->Invokint method onOpen of the class:" +this .getClass ().getCanonicalName ());
22
- try {
23
- session .getBasicRemote ().sendBinary (ByteBuffer .wrap ("Hello World!" .getBytes ()));
24
- }catch (IOException ioe ){
25
- ioe .printStackTrace ();
26
- }
27
- }
18
+
19
+ @ OnOpen
20
+ public void onOpen (Session session ) {
21
+ System .out .println ("[Action]->Invokint method onOpen of the class:" + this .getClass ().getCanonicalName ());
22
+ try {
23
+ session .getBasicRemote ().sendBinary (ByteBuffer .wrap ("Hello World!" .getBytes ()));
24
+ } catch (IOException ioe ) {
25
+ ioe .printStackTrace ();
26
+ }
27
+ }
28
28
}
You can’t perform that action at this time.
0 commit comments