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

x/deno/std/ws/mod.ts>connectWebSocket

A modern runtime for JavaScript and TypeScript.
Go to Latest
function connectWebSocket
import { connectWebSocket } from "https://deno.land/x/deno@v0.22.0/std/ws/mod.ts";

Connect to given websocket endpoint url. Endpoint must be acceptable for URL.

Parameters

endpoint: string
optional
headers: Headers = [UNSUPPORTED]