(length)
| 16 | }; |
| 17 | |
| 18 | function createBinaryFrame(length) { |
| 19 | const list = Sender.frame(crypto.randomBytes(length), { |
| 20 | opcode: 0x02, |
| 21 | ...options |
| 22 | }); |
| 23 | |
| 24 | return Buffer.concat(list); |
| 25 | } |
| 26 | |
| 27 | const pingFrame1 = Buffer.concat( |
| 28 | Sender.frame(crypto.randomBytes(5), { opcode: 0x09, ...options }) |
no test coverage detected