Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.Network.WebSocketFrame
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.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.