Skip to main content
Module

x/oak_rate_limit/deps.ts>Context#upgrade

Rate-limiting middleware for Oak server on Deno
Latest
method Context.prototype.upgrade
import { Context } from "https://deno.land/x/oak_rate_limit@v0.1.1/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