-
September 29th, 2014, 05:15 PM
#1
Remote Adaptor Architecture Question
We have node js implementation and we are evaluating LightStreamer for chat and real time data distribution
we installed demo on aws form your provided aws image
based on remote Node js chat adaptor the following lines
HOST = 'xx.xx.xx.xx',
REQ_RESP_PORT = 8001,
WRITE_PORT = 8002,
META_PORT = 8003,
can we assume LighStream and node server can be separated? I mean different server. when we setup in different machines log of Light Stream server like the following
29.Sep.14 15:56:24,899 < INFO> Loading Metadata Adapter PROXY_NODECHAT
29.Sep.14 15:56:24,899 < INFO> Loading Data Adapter PROXY_NODECHAT.CHAT_ROOM
29.Sep.14 15:56:24,907 < INFO> Finished loading Data Adapter PROXY_NODECHAT.CHAT_ROOM
29.Sep.14 15:56:24,910 < INFO> Loading inner Proxy Data Adapter
29.Sep.14 15:56:24,930 < INFO> Connecting...
29.Sep.14 15:56:24,936 < INFO> Waiting for a connection on port 8002...
29.Sep.14 15:56:24,938 < INFO> Waiting for a connection on port 8001...
29.Sep.14 15:56:24,942 < INFO> Connecting inner Proxy Metadata Adapter
29.Sep.14 15:56:24,943 < INFO> Connecting...
29.Sep.14 15:56:24,943 < INFO> Waiting for a connection on port 8003...
and client is not working throwing the following error
WebSocket connection to 'ws://xx.xx.xx.xx/lightstreamer' failed: Error during WebSocket handshake: Unexpected response code: 200 lightstreamer.js:176
i couldn't find clear information about separated architecture how can I reach more information about the subject
regards
Burak Tugan
-
September 30th, 2014, 09:14 AM
#2
Hi,
Yes you can run the remote adapter on a different machine.
From the log you show it looks like the remote node adapter was not yet attached to the lightstreamer server. Was the node adapter running at that moment? Did you get any error when running the node adapter?
The client is getting that error because when it tries to connect to the server, Lightstreamer is not yet listening as it is still waiting for the remote adapter to startup. So, as per now, ignore the client error and concentrate on the adapter/server connection.
-
October 15th, 2014, 12:43 PM
#3
thank you very much Mone, I solved the issue
Similar Threads
-
By webmons in forum Adapter SDKs
Replies: 3
Last Post: March 7th, 2013, 09:30 AM
-
By Heritage in forum General
Replies: 3
Last Post: April 8th, 2010, 11:23 AM
-
By lucab617 in forum Adapter SDKs
Replies: 5
Last Post: May 19th, 2008, 03:16 PM
-
By dianacastillo in forum Adapter SDKs
Replies: 1
Last Post: April 15th, 2008, 11:52 AM
-
Replies: 1
Last Post: March 15th, 2007, 02:44 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 05:05 PM.
Bookmarks