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

x/danet/src/deps.ts>Context#upgrade

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
method Context.prototype.upgrade
import { Context } from "https://deno.land/x/danet@1.3.3/src/deps.ts";

Take the current request and upgrade it to a web socket, resolving with the a web standard WebSocket object. This will set .respond to false. If the socket cannot be upgraded, this method will throw.

Parameters

optional
options: UpgradeWebSocketOptions