Guys, maybe you can help me?)
Couldn't run Node.js adapter with multiple Data Providers, if run it only with one Data Provider - it's ok.
Also catch exception when try run Node.js Adapter:
/home/dzmitry/Work/mock-stream-adapter/node_modules/lightstreamer-adapter/lib/dataprotocol.js:189 throw new Error("Unexpected late " + dataMethods.DATA_INIT + " message");
^
Error: Unexpected late DPI message
at read (/home/dzmitry/Work/mock-stream-adapter/node_modules/lightstreamer-adapter/lib/dataprotocol.js:189:9)
at Object.parse (/home/dzmitry/Work/mock-stream-adapter/node_modules/lightstreamer-adapter/lib/protocol.js:317:18)
at Socket.handleIncomingMessage (/home/dzmitry/Work/mock-stream-adapter/node_modules/lightstreamer-adapter/lib/dataprovider.js:89:10)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:246:13)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:601:20)
You can check my adapters.xml.
[PHP]
<adapters_conf id="STREAMINGALL">
<metadata_provider>
<adapter_class>com.lightstreamer.adapters.metadata.LiteralBasedProvider</adapter_class>
</metadata_provider>
<data_provider name="PRICES">
<adapter_class>PROXY_FOR_REMOTE_ADAPTER</adapter_class>
<classloader>log-enabled</classloader>
<param name="request_reply_port">6661</param>
<param name="notify_port">6662</param>
</data_provider>
<data_provider name="ORDERS">
<adapter_class>PROXY_FOR_REMOTE_ADAPTER</adapter_class>
<classloader>log-enabled</classloader>
<param name="request_reply_port">7663</param>
<param name="notify_port">7664</param>
</data_provider>
</adapters_conf>
[/PHP]
If I delete <data_provider name="ORDERS"> </data_provider>, works fine)
Looking forward to your reply.
Thank you