Open jack-y opened 7 years ago
This is because when you call done, it will fire an action to send the result to the caller. But after the caller recieved the first response, the listener will be closed.
@W1U02: Great answer! So should I let the listener always open? (And how to do it?)
@jack-y the listener is created in mesh and I have no idea about how to keep it open. May be we can check with @rjrodger if this is by design.
This kind of warning message is fired:
package.json
The dependencies used are:
The mesh-base script
First, this basic mesh-base script is started in a terminal:
The microservice
The simple test
plugin.js
is:And the test microservice is started with this simple script:
Tests
The
test.js
script is:When only one instance of the microservice is running in a terminal, all is fine. When a second instance of the microservice is running in another terminal, the test script fires one warning message. And when a third instance is running in another terminal, the test script fires two warning messages.
What can be wrong?