0

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.

radiorz
  • 1,459
  • 4
  • 18
  • 36

1 Answers1

0

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:

radiorz
  • 1,459
  • 4
  • 18
  • 36