Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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