Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oak_nest/mod.ts>Context#upgrade

Refer to nestjs to realize some common functions for Deno
Go to Latest
method Context.prototype.upgrade
Re-export
import { Context } from "https://deno.land/x/oak_nest@v1.15.0/mod.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