Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.Context#upgrade

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
method oak.Context.prototype.upgrade
import { oak } from "https://deno.land/x/hex@0.6.5/src/fw/service/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