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?