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

x/deno/cli/dts/lib.deno.ns.d.ts>Deno.WebSocketUpgrade

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.WebSocketUpgrade
import { type Deno } from "https://deno.land/x/deno@v1.28.0/cli/dts/lib.deno.ns.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.