File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
websocket/binary/src/main/java/org/javaee7/websocket/binary Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 11/**
2- *
2+ *
33 */
44package org .javaee7 .websocket .binary ;
55
1212
1313/**
1414 * @author Nikolaos Ballas
15- *
15+ *
1616 */
1717@ ClientEndpoint
1818public 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- }
19+
20+ @ OnOpen
21+ public void onOpen (Session session ) {
22+ System .out .println ("[Action]->Invokint method onOpen of the class:" + this .getClass ().getCanonicalName ());
23+ try {
24+ session .getBasicRemote ().sendBinary (ByteBuffer .wrap ("Hello World!" .getBytes ()));
25+ } catch (IOException ioe ) {
26+ ioe .printStackTrace ();
27+ }
28+ }
2829}
You can’t perform that action at this time.
0 commit comments