1.1 KiB
1.1 KiB
Home > puppeteer > Protocol > Network > WebSocketFrame
Protocol.Network.WebSocketFrame interface
WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
Signature:
export interface WebSocketFrame
Properties
Property | Type | Description |
---|---|---|
mask | boolean | WebSocket message mask. |
opcode | number | WebSocket message opcode. |
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. |