method Context.prototype.upgradeimport { Context } from "https://dotland.deno.dev/x/oak@v11.1.0/mod.ts"; upgrade(options?: UpgradeWebSocketOptions): WebSocketTake 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. Parametersoptionaloptions: UpgradeWebSocketOptionsReturnsWebSocket