The goal of this project is to receive the live data from the Lang & Schwarz TradeCenter using the Lightstreamer Protocol.
- The client sends a request to
/lightstreamer/create_session.js
to create a session. TheLS_adapter_set
must beWALLSTREETONLINE
and theLS_phase
a random number. - The server will answer with a response that contains the session key.
- Next, the client sends a request to open a websocket.
- Using this socket, the client tries to bind the session, sending the
bind_session
command togehter with itsLS_phase
and the session key. However, instead of the response I get on the website, I receive the following content which probably means that someting went wrong:setPhase(<LS_phase>);retry();
. Unfortunatly, I don't know why...
Any contribution to this project is welcome. Thanks!