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

x/aleph/deps.ts>ws.acceptWebSocket

The Full-stack Framework in Deno.
Go to Latest
function ws.acceptWebSocket
import { ws } from "https://deno.land/x/aleph@v0.3.0-alpha.5/deps.ts";
const { acceptWebSocket } = ws;

Upgrade inputted TCP connection into WebSocket connection.

Parameters

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