(packets)
| 12 | export const protocol = 3; |
| 13 | |
| 14 | const hasBinary = (packets) => { |
| 15 | for (const packet of packets) { |
| 16 | if (packet.data instanceof ArrayBuffer || ArrayBuffer.isView(packet.data)) { |
| 17 | return true; |
| 18 | } |
| 19 | } |
| 20 | return false; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Packet types. |