Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.Network.WebSocketFrame

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
interface Protocol.Network.WebSocketFrame
import { type Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { WebSocketFrame } = Protocol.Network;

WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

Properties

opcode: number

WebSocket message opcode.

mask: boolean

WebSocket message mask.

payloadData: string

WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.