Deno.WebSocketUpgrade

The object that is returned from a Deno.upgradeWebSocket request.

interface WebSocketUpgrade {
response: Response;
socket: WebSocket;
}

§Properties

§
response: Response
[src]

The response object that represents the HTTP response to the client, which should be used to the RequestEvent .respondWith() for the upgrade to be successful.

§
socket: WebSocket
[src]

The WebSocket interface to communicate to the client via a web socket.