Results 1 to 2 of 2
  1. #1

    Lightstreamer Client for Matlab

    I am trying to build a lightstreamer client for Matlab. There do exist a couple of libraries for platforms like JAVA, Python, .Net etc. But unfortunately not Matlab. However, it turns out that most of these client implementations use the very same text-mode protocol for lightstreamer which is pretty basic HTTP requesting.

    I figured out how to establish/close a lightstreamer session. I get the sessionId and I can use this id to subscribe to the data I want to stream. But although I do get a valid response for the subscription call, there is no data pushed.

    I use the urlead2 function and the response seems fine:


    HTML Code:
    [output,extras]=urlread2([lightstream_url,'/lightstreamer/control.txt'],'POST',body,headers);
    allHeaders =

    HTML Code:
    Response:{'HTTP/1.1 200 OK'}
            Server:{'Lightstreamer'}
      Content_Type:{'text/plain; charset=iso-8859-1'}
     Cache_Control:{'no-store''no-cache'}
            Pragma:{'no-cache'}
           Expires:{'Thu, 1 Jan 1970 00:00:00 GMT'}
              Date:{'Wed, 8 Apr 2015 11:15:02 GMT'}
    Content_Length:{'4'}
    status =

    value
    :200
    msg:'OK'

    isGood =1

    output =
    OK

    It is correct that the response body contains "OK ", this is documented (documentation, page 20ff.), but there is supposed to be the stream data itself as well, isn't it?
    So how do I get the actual data?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    957
    I confirm that it is possible that a subscription request is successful but yields no data.
    In fact, the requested items may produce no updates.
    However, if the subscription request includes the request for the snapshot, at least an empty snapshot should be received.
    Please check your case.

 

 

Similar Threads

  1. SYNC ERROR in Matlab Client for LightStreamer
    By flimmbing in forum Client Protocol
    Replies: 1
    Last Post: April 10th, 2015, 10:43 AM
  2. Replies: 2
    Last Post: January 5th, 2012, 09:53 AM

Tags for this Thread

Bookmarks

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 12:43 AM.