()
| 451 | ) |
| 452 | } |
| 453 | const cleanup = () => { |
| 454 | ws.off('message', onMessage) |
| 455 | ws.off('close', onClose) |
| 456 | ws.off('error', onError) |
| 457 | } |
| 458 | ws.on('message', onMessage) |
| 459 | ws.once('close', onClose) |
| 460 | ws.once('error', onError) |
nothing calls this directly
no outgoing calls
no test coverage detected