Last active
December 30, 2015 21:05
-
-
Save abhirockzz/ba2636d9ddee3dfdb582 to your computer and use it in GitHub Desktop.
A programmatic websocket client endpoint example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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