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

x/servest/vendor/https/deno.land/std/ws/mod.ts

🌾A progressive http server for Deno🌾
Latest
import * as servest from "https://deno.land/x/servest@v1.3.4/vendor/https/deno.land/std/ws/mod.ts";

Functions

Returns true if input headers are usable for WebSocket, otherwise false.

Upgrade inputted TCP connection into WebSocket connection.

Create value of Sec-WebSocket-Accept header from inputted nonce.

Returns base64 encoded 16 bytes string for Sec-WebSocket-Key header.

Returns true if input value is a WebSocketCloseEvent, false otherwise.

Returns true if input value is a WebSocketPingEvent, false otherwise.

Returns true if input value is a WebSocketPongEvent, false otherwise.

Read websocket frame from given BufReader

Unmask masked websocket payload

Write WebSocket frame to inputted writer.