Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:25
What would you like to do?
Annotated Web Socket Client end point
import javax.websocket.ClientEndpoint;
import javax.websocket.OnClose;
import javax.websocket.OnError;
import javax.websocket.Session;
public class StockTickerClient {
public void closed(Session session) {
System.out.println("Session " + session + " closed");
public void error(Throwable error) {
System.out.println("Error: " + error.getMessage());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment