* Register a callback fired exactly once when the socket closes (from either * side). Used by the daemon to decrement its connected-clients refcount.
(handler: () => void)
| 354 | * side). Used by the daemon to decrement its connected-clients refcount. |
| 355 | */ |
| 356 | onClose(handler: () => void): void { |
| 357 | this.closeHandlers.push(handler); |
| 358 | } |
| 359 | |
| 360 | start(handler: MessageHandler): void { |
| 361 | this.messageHandler = handler; |
no outgoing calls
no test coverage detected