* Send a message to connected IPC clients. * Currently, this will only send messages if Homebridge was launched as a child_process.fork() * from another Node.js process (such as hb-service).
(id: IpcOutgoingEvent, data: unknown)
| 68 | * from another Node.js process (such as hb-service). |
| 69 | */ |
| 70 | public sendMessage(id: IpcOutgoingEvent, data: unknown): void { |
| 71 | if (process.send) { |
| 72 | process.send({ |
| 73 | id, |
| 74 | data, |
| 75 | }) |
| 76 | } |
| 77 | } |
| 78 | } |
no test coverage detected