Hey there,
I'm having trouble understanding what the parameter "name" - (a string acting as the message port name.) corresponds to in this node library,
node-ipcI set up a local port like this using hammerspoon, and I want to send a message from a node instance, and see the alert show.
hs.ipc.localPort('hello', function()
hs.alert.show('got ipc!');
end)
but i'm having trouble connecting. Could anyone please tell me what I should put as the string id and path if I'm using node-ipc.
connectTo, as documented here?
(I'm using Catalina)
When I try with "hello" as the string id, and i leave the path as `null`, or an empty string, i get
requested connection to hello /tmp/hello
Connecting client on Unix Socket : /tmp/hello
######
error: { Error: connect ENOENT /tmp/hello
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'connect',
address: '/tmp/hello' }
connection closed hello /tmp/hello Infinity tries remaining of Infinity
and when i use id = "hello" and path = "hello" i get:
requested connection to hello hello
Connecting client on Unix Socket : hello
######
error: { Error: connect ENOENT hello
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'connect',
address: 'hello' }
connection closed hello hello Infinity tries remaining of Infinity
I've tried many other combinations, but I don't have the exact error logs anymore. If anyone could help me point me in the right direction, that would be greatly appreciated!
Brad