Module

std/ws/mod.ts>acceptWebSocket

Deno standard library
Go to Latest
function acceptWebSocket
Deprecated
Deprecated

use Deno.upgradeWebSocket Upgrade inputted TCP connection into WebSocket connection.

import { acceptWebSocket } from "https://dotland.deno.dev/std@0.116.0/ws/mod.ts";

Parameters

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