Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.Network.WebSocketFrame
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.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.