Closed draeder closed 3 years ago
I was able to solve this thanks to the code in example.js.
Could I ask which code specifically in example.js help you fix this issue?
@jamesfiltness
if (client) process.stdin.pipe(socket) // client processes the message
or
if (!client) process.stdin.pipe(socket) // server processes the message
thanks!
I'm a little confused, and I apologize if it shows my ignorance/lack of experience.
I am trying to send a message from one connected node server to the other using:
The problem is the message from one terminal is duplicated on the other.
For example, if I type the following in serverA:
I get the following in serverB:
. . . and vice versa
I can work around this by setting one of the two servers to not announce: