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

std/ws/mod.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.76.0/ws/mod.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