Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface default.Network.WebSocketFrame
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { WebSocketFrame } = default.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.