Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created June 17, 2016 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/39b3a93564217139104c57c317616ba4 to your computer and use it in GitHub Desktop.
Save abhirockzz/39b3a93564217139104c57c317616ba4 to your computer and use it in GitHub Desktop.
Websocket Anotated Client endpoint
@ClientEndpoint
public class WebsocketAnotatedClient {
@OnOpen
public void onopen(){
System.out.println("connected to server.... ");
}
@OnMessage
public void onmsg(String msg){
System.out.println("recieved from server.... "+ msg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment