WebSocketRequestHandler.handle

Handles an incoming HTTP request and tries to establish a websocket connection by first verifying the request, then sending a switching- protocols response, and finally registering the new connection with the websocket manager.

class WebSocketRequestHandler
void
handle
(
ref ServerHttpRequest request
,
ref ServerHttpResponse response
)

Parameters

request ServerHttpRequest

The request to read from.

response ServerHttpResponse

The response to write to.