()
| 339 | |
| 340 | // we force a polling cycle to ensure a fast upgrade |
| 341 | const check = () => { |
| 342 | if ("polling" === this.transport.name && this.transport.writable) { |
| 343 | debug("writing a noop packet to polling for fast upgrade"); |
| 344 | this.transport.send([{ type: "noop" }]); |
| 345 | } |
| 346 | }; |
| 347 | |
| 348 | const cleanup = () => { |
| 349 | this.upgrading = false; |