Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cav/http.ts>upgradeWebSocket

A server framework for Deno
Go to Latest
function upgradeWebSocket
import { upgradeWebSocket } from "https://deno.land/x/cav@0.0.8/http.ts";

The server-side equivalent of the wrapWebSocket function in the client module. Returns a Response which should be returned by the handler for the socket upgrade to complete successfully.

Type Parameters

optional
Send = unknown
optional
Message extends Parser | null = null