This can be used for filtering of the WebSocket object creation due to criteria such as origin or sub-protocol, or for choosing a specific WebSocket object based on the upgrade request.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the WebSocket object, or null to take responsibility to send error response if no WebSocket is to be created.the request details request, ServerUpgradeResponse the response details response, Callback the callback, should only be completed by the creator if a null WebSocket object is returned. callback)Create a websocket from the incoming request. |
| createWebSocket | back to summary |
|---|---|
| public Object createWebSocket(ServerUpgradeRequest request, ServerUpgradeResponse response, Callback callback) Create a websocket from the incoming request. If the creator returns null it is responsible for completing the
| |