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

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

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

Upgrade given TCP connection into websocket connection

Parameters

req: { conn: Conn; bufWriter: BufWriter; bufReader: BufReader; headers: Headers; }