puppeteer/new-docs/puppeteer.protocol.network.websocketframe.md

23 lines
1.1 KiB
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Network](./puppeteer.protocol.network.md) &gt; [WebSocketFrame](./puppeteer.protocol.network.websocketframe.md)
## Protocol.Network.WebSocketFrame interface
WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
<b>Signature:</b>
```typescript
export interface WebSocketFrame
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [mask](./puppeteer.protocol.network.websocketframe.mask.md) | boolean | WebSocket message mask. |
| [opcode](./puppeteer.protocol.network.websocketframe.opcode.md) | number | WebSocket message opcode. |
| [payloadData](./puppeteer.protocol.network.websocketframe.payloaddata.md) | 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. |