mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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. |