Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denjucks/src/deps/path/std/ws/mod.ts

Deno templating engine
Latest
import * as denjucks from "https://deno.land/x/denjucks@1.1.1/src/deps/path/std/ws/mod.ts";

Functions

Return whether given headers is acceptable for websocket

Upgrade given TCP connection into websocket connection

Connect to given websocket endpoint url. Endpoint must be acceptable for URL.

Create sec-websocket-accept header value with given nonce

Create WebSocket-Sec-Key. Base64 encoded 16 bytes string

Read websocket frame from given BufReader

Unmask masked websocket payload

Write websocket frame to given writer