Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Last active December 31, 2015 04:53
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/ed3490a1829c72144a0b to your computer and use it in GitHub Desktop.
Save abhirockzz/ed3490a1829c72144a0b to your computer and use it in GitHub Desktop.
Peek preview of custom configurators
public class CustomServerEndpointConfigurator extends ServerEndpointConfig.Configurator {
//.. details ommitted
}
ServerEndpointConfig sec = ServerEndpointConfig.Builder.create(ChatEndpoint.class, "/letschat")
.configurator(serverEndpointConfigurator)
.build();
public class CustomClientEndpointConfigurator extends ClientEndpointConfig.Configurator {
//.. details ommitted
}
ClientEndpointConfig config = ClientEndpointConfig.Builder.create()
.configurator(clientEndpointConfigurator)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment