Allows to create (custom) WebSocket endpoints instances given the HTTP request and HTTP response.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: a WebSocket endpoint instance, ornull if no WebSocket endpoint
instance should be created for the given upgrade requestthe upgrade request upgradeRequest, ServerUpgradeResponse the upgrade response upgradeResponse, Callback the callback to complete only when returning callback)nullCreates a WebSocket endpoint instance from the incoming request. |
| createWebSocket | back to summary |
|---|---|
| public Object createWebSocket(ServerUpgradeRequest upgradeRequest, ServerUpgradeResponse upgradeResponse, Callback callback) throws Exception Creates a WebSocket endpoint instance from the incoming request. If the implementation does not want to create a WebSocket endpoint instance,
it is responsible to send a response (and completing the callback) and then it
may return If the implementation returns a non-
| |