Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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