Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Last active December 30, 2015 21:05
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/ba2636d9ddee3dfdb582 to your computer and use it in GitHub Desktop.
Save abhirockzz/ba2636d9ddee3dfdb582 to your computer and use it in GitHub Desktop.
A programmatic websocket client endpoint example
public class ProgrammaticEchoClient extends Endpoint {
@Override
public void onOpen(Session session, EndpointConfig config) {
System.out.println("Connected to server");
}
//a message handler and other life cycle implementations have been skipped on purpose...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment