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

x/aleph/std.ts>ws.acceptWebSocket

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

Upgrade given TCP connection into websocket connection

Parameters

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