Skip to main content
Module

x/aleph/std.ts>ws

The Full-stack Framework in Deno.
Very Popular
Go to Latest
namespace ws
import { ws } from "https://deno.land/x/aleph@v0.2.21/std.ts";

Functions

Return whether given headers is acceptable for websocket

Upgrade given TCP connection into websocket connection

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