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

x/socket_client/mod.ts>Frame

A simple WebSocket client for Deno
Latest
class Frame
import { Frame } from "https://deno.land/x/socket_client@0.1.0-alpha.1/mod.ts";

Constructors

new
Frame(data: FrameData)

Properties

fin: boolean

Indicates that this is the final fragment in a message

masked: boolean

Whether the payload data is masked.

optional
maskingKey: Uint8Array

The key used to mask all frames sent from the client to the websocket.

opcode: OpCode

The interpretation of the payload data.

payloadLen: number

The length of the payload data.

rsv1: boolean

Reversed for future use.

rsv2: boolean

Reversed for future use.

rsv3: boolean

Reversed for future use.

Methods

Read the payload data from the websocket.

Check if the frame data is valid.

Static Methods

parse(reader: BufReader)

Parse a frame from the websocket.