Questions tagged [node-ipc]

16 questions
7
votes
2 answers

Communicating between NodeJS and C using node-ipc and unix sockets

I want to communicate between NodeJS and a C program using node-ipc, over a Unix socket, which according to that homepage is the fastest option. (They will be on the same machine). That package claims it could communicate with a C program. (I had to…
Jodes
  • 14,118
  • 26
  • 97
  • 156
3
votes
1 answer

Node-ipc in Typescript class

I am trying to use node-ipc in my TypeScript project and stuck on getting correct type for class member: import { IPC } from 'node-ipc'; class IpcImpl extends IIpc { ipcSocketPath?: string; ipc?: any; // What the type should be here? …
Alex G.P.
  • 9,609
  • 6
  • 46
  • 81
3
votes
0 answers

sending messages to specific Client with node-ipc

I have an electron app where different clients communicate with a server over a Network using node-ipc. As long as the client connects to the server first it is no problem to answer that specific client. According to the docs I have on the…
Torf
  • 1,154
  • 11
  • 29
3
votes
1 answer

communication between processes: tcp vs unix sockets, ipc vs nats

I'm breaking a big application into several processes and I want each process to communicate with each other. for now it's gonna be on the same server, but later several servers on same local network will have several processes that will need to…
ufk
  • 30,912
  • 70
  • 235
  • 386
1
vote
1 answer

Convert stringified object to Mongoose document

I'm using node-ipc to transfer some mongoose documents across child processes, however, Mongoose functions no longer work with these documents since stringify is called and they are no longer valid mongoose documents. What is the best way to make…
Aiden
  • 310
  • 4
  • 18
1
vote
0 answers

Were there some changes to Electron 5 and 6 that would prevent inbound IPC connections?

I had a working setup of communication between Electron and a regular Node application via Node-IPC in Electron 4.1.5. After no changes except upgrading to Electron 6, I can only send IPC communications out from Electron. Electron cannot receive…
Slbox
  • 10,957
  • 15
  • 54
  • 106
1
vote
1 answer

node-ipc error "Messages are large, You may want to consider smaller messages."

So I am trying to setup a socket server in node.js using node-ipc, then send data from a client. I can connect perfectly fine, however when I send data I recieve the error Messages are large, You may want to consider smaller messages. I have…
Tazz
  • 181
  • 7
1
vote
0 answers

Can I use Electrons built in IPC to communicate with .NET app?

I'm looking into building an Electron application which needs to be able to send messages to a separate .NET application on the same machine. Is it possible to use the built-in IPC-library (ipcRenderer/ipcMain) to communicate outside of Electron,…
mottosson
  • 3,283
  • 4
  • 35
  • 73
1
vote
1 answer

Communicating between C and NodeJS using node-ipc and unix sockets

This question follows on from the following: Communicating between NodeJS and C using node-ipc and unix sockets In regards to the accepted solution (https://stackoverflow.com/a/39848936/1834057), I was wondering if someone might be able to clarify…
Nicholas Hamilton
  • 10,044
  • 6
  • 57
  • 88
1
vote
2 answers

Connecting to Server with unknown IP-Address

I have a Electron Client/Server Application where the Server Communicates with a couple of Clients over the LAN. This communication is established via node-ipc. The Problem is, that I have no control over the LAN DHCP. So at startup I have no idea…
Torf
  • 1,154
  • 11
  • 29
0
votes
0 answers

node ipc with .net 6 console app on macos

I am trying to establish IPC between Node and Console app written in .NET 6 on macOS. It launches the Application, however, cannot perform the IPC. Once Console app is launched, I can write to console and that is received correctly, however,…
vibhu
  • 1,657
  • 2
  • 15
  • 19
0
votes
0 answers

Override the JSON stringify method in process.send()

I am calling process.send(val) with an IPC message between parent and child. The object val has some arbitrary circular references, that are hard to prune, reliably. I have a custom JSON stringify function that can handle circular refs. Is there a…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

Messages are large, You may want to consider smaller messages. node-ipc and swift (OSX)

I have a node app that is trying to communicate with a swift application using a unix socket. I am broadcasting a Message ever 3 seconds using the following code with node-ipc: const ipc = require('node-ipc').default; // Run IPC server for…
Silve2611
  • 2,198
  • 2
  • 34
  • 55
0
votes
1 answer

node-ipc client couldnt accept data from pipe(which c++ send) and echo error Messages are large, You may want to consider smaller messages?

node-ipc client couldnt accept data from pipe(which c++ send) and echo error Messages are large, You may want to consider smaller messages? But actually I did send a very small message like this: { "data":{"timestamp":"1111111...1111"}, …
radiorz
  • 1,459
  • 4
  • 18
  • 36
0
votes
0 answers

How do I use node-ipc and express at the same time

I want to use both node-ipc and express in the same script but each use blocking methods to start their respective servers. I saw the threads package but wanted to verify. What is best practice to run both servers at the same time? Thanks!
user2856949
  • 317
  • 2
  • 6
1
2