Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A programmatic websocket client endpoint example
public class ProgrammaticEchoClient extends Endpoint {
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