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

std/ws/mod.ts>acceptWebSocket

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function acceptWebSocket
import { acceptWebSocket } from "https://deno.land/std@0.76.0/ws/mod.ts";

Upgrade given TCP connection into websocket connection

Parameters

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