Results 1 to 3 of 3
  1. #1

    receive data without stream connection

    Hello, we have implemented lightstreamer on our server and now our C++ application receives realtime data from LS via http streaming.

    We have some scenarios where keep-alive connections are not allowed (corporate & firewall policies, among others) and so we must have a "pooling mode", that might work like this:

    1. create a session, without keeping connection alive (no stream)
    2. subscribe some stocks to receive data
    3. make a request (once a second, for instance) to get available data

    So, is there any approach to get things working this way ?

  2. #2

    Lightstreamer server specifically supports the so called long-polling mode for use-cases like yours. In this mode the connection is released as soon as the real-time notifications are sent.
    You can find more information on the guide Generic Clients: Network Protocol (TLCP) Specification in Docs page of Lightstreamer web site.
    Especially read the sections:
    - Session Life Cycle (p. 6)
    - the syntax of the client-server protocol (chapter 3, p. 22)
    - the discussion about parameters LS_polling, LS_polling_millis and LS_idle_millis in Session Binding Request (p. 24)
    - the Hands On examples (chapter 6, p. 64)

  3. #3
    I'd make this way, after reading the docs and it's working very well.




Similar Threads

  1. Replies: 4
    Last Post: February 11th, 2020, 12:11 PM
  2. Replies: 1
    Last Post: October 25th, 2010, 12:23 PM
  3. Can I receive the original data?
    By Johnny in forum Client SDKs
    Replies: 10
    Last Post: September 13th, 2010, 11:06 AM
  4. Client receive old data after some time.
    By mnenchev in forum General
    Replies: 3
    Last Post: November 25th, 2009, 02:27 PM
  5. Error: Only a client can stream data.
    By lethanhclub in forum Adapter SDKs
    Replies: 6
    Last Post: September 16th, 2009, 10:26 AM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 10:45 AM.