MCPcopy
hub / github.com/homebridge/homebridge / sendMessage

Method sendMessage

src/ipcService.ts:70–77  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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}

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected