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"},
  "type":"message"
}

I can use this client send message to my server which written by c++. By I couldnt accept any message from my server.

1

There are 1 answers

0
radiorz On

node-ipc need a \f following the json.

so if you use c++ or other languages, just send the message like this:

{ "type": "message", "data": { "foo": "bar" } } \f

this is the issue of node-ipc: