import { upgradeWebSocket } from "https://deno.land/x/cav@0.0.14/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
Message extends Parser | null = nullParameters
req: Request
optional
init: SocketInit<Message>