Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/opine/src/request.ts>WrappedRequest#upgrade

Minimalist web framework for Deno ported from ExpressJS.
Latest
method WrappedRequest.prototype.upgrade
import { WrappedRequest } from "https://deno.land/x/opine@2.3.4/src/request.ts";

Upgrades the HTTP connection to a WebSocket connection by internally calling Deno.upgradeWebSocket(req). Returns the created WebSocket.

Returns

The created WebSocket