Hi,
I'm new at Lightstreamer server and I'm trying to connect my application in Java with Lightstreamer. I've tried this https://github.com/Weswit/Lightstreamer-lib-node-adapterand when I'm running node adapters.js it says that localhost(I replaced LIGHTSTREAMER_SERVER_HOST with localhost) is not found
That is this code:
thanks
I'm new at Lightstreamer server and I'm trying to connect my application in Java with Lightstreamer. I've tried this https://github.com/Weswit/Lightstreamer-lib-node-adapterand when I'm running node adapters.js it says that localhost(I replaced LIGHTSTREAMER_SERVER_HOST with localhost) is not found
That is this code:
- Get the net package and create the connections to Lightstreamer server. Note that the ports are the same used in the above file; LIGHTSTREAMER_SERVER_HOST is the host of the Lightstreamer server e.g.: "localhost".
varnet = require('net'),reqRespStream =net.createConnection(8001 , LIGHTSTREAMER_SERVER_HOST),notifyStream =net.createConnection(8002 , LIGHTSTREAMER_SERVER_HOST),metadataStream =net.createConnection(8003 , LIGHTSTREAMER_SERVER_HOST);
thanks