Last active
December 31, 2015 04:53
-
-
Save abhirockzz/ed3490a1829c72144a0b to your computer and use it in GitHub Desktop.
Peek preview of custom configurators
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 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