(fragment)
| 353 | } |
| 354 | |
| 355 | writeFragments (fragment) { |
| 356 | if ( |
| 357 | this.#maxFragments > 0 && |
| 358 | this.#fragments.length === this.#maxFragments |
| 359 | ) { |
| 360 | failWebsocketConnection(this.#handler, 1008, 'Too many message fragments') |
| 361 | return false |
| 362 | } |
| 363 | |
| 364 | this.#fragmentsBytes += fragment.length |
| 365 | this.#fragments.push(fragment) |
| 366 | return true |
| 367 | } |
| 368 | |
| 369 | consumeFragments () { |
| 370 | const fragments = this.#fragments |
no test coverage detected