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

x/superdeno/test/deps.ts>Oak.Context#upgrade

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
method Oak.Context.prototype.upgrade
import { Oak } from "https://deno.land/x/superdeno@4.8.0/test/deps.ts";
const { Context } = Oak;

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