Skip to main content
Module

x/pogsocket/mod.ts

🌐 deno websocket client
Latest
import * as pogsocket from "https://deno.land/x/pogsocket@2.0.0/mod.ts";

Enums

Represents a websocket op code

Functions

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

Closes the provided pogsocket with a code and/or reason.

Closes the connection of the supplied pogsocket, only for internal use.

Creates a mask of n-byte length.

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

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

Whether a websocket message is binary.

Sends a message to the server.

Unmask masked websocket payload