Module

x/aleph/std.ts>ws.acceptWebSocket

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

Upgrade given TCP connection into websocket connection

Parameters

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