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

x/ayonli_jsext/lib.deno.d.ts>Deno.WebSocketUpgrade

A JavaScript extension package for building strong and modern applications.
Latest
interface Deno.WebSocketUpgrade
import { type Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { WebSocketUpgrade } = Deno;

The object that is returned from a Deno.upgradeWebSocket request.

Properties

response: Response

The response object that represents the HTTP response to the client, which should be used to the RequestEvent .respondWith() for the upgrade to be successful.

socket: WebSocket

The WebSocket interface to communicate to the client via a web socket.