I'm trying to write a multiple subscribe using http (C++ Builder, TLCP protocol), as explained in page 30 of
protocol specification:
URL: http://push.lightstreamer.com/lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
PARAMS: LS_cid=mgQkwtwdysogQz2BJ4Ji+kOj2Bg\r\nLS_adapter_set=DEMO\r\n
R: HTTP/1.0 200 OK
Server: Lightstreamer-Server/7.1.0 b4 build 1915 (Lightstreamer Server -
www.lightstreamer.com) ENTERPRISE edition
Content-Type: text/enriched; charset=UTF-8
Cache-Control: no-store
Cache-Control: no-transform
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 1 Jan 1970 00:00:00 GMT
Date: Fri, 10 May 2019 17:35:25 GMT
Content-Length: 500000
Connection: Keep-Alive
x-accel-buffering: no
CONEXAO OK -> CONOK,S6c80fb278aabaef7M14aT3525526,50000,5000,*
URL:http://push.lightstreamer.com/lightstreamer/control.txt?LS_protocol=TLCP-2.1.0&LS_session=S6c80fb278aabaef7M14aT3525526
PARAMS:
LS_reqId=1&LS_op=add&LS_subId=1&LS_group=item1&LS_schema=stock_name+last_price+time+bid+ask&LS_data_adapter=QUOTE_ADAPTER&LS_mode=MERGE\r\nLS_reqId=2&LS_op=add&LS_subId=2&LS_group=item2&LS_schema=stock_name+last_price+time+bid+ask&LS_data_adapter=QUOTE_ADAPTER&LS_mode=MERGE\r\nLS_reqId=3&LS_op=add&LS_subId=3&LS_group=item3&LS_schema=stock_name+last_price+time+bid+ask&LS_data_adapter=QUOTE_ADAPTER&LS_mode=MERGE\r\n
R: 200 REQOK,3
It's subscribing only the last item, even if trying with different number of items.
U,3,1,Bagies Consulting|6.7|19:35:28|6.69|6.7
U,3,1,|6.77|19:35:30|6.77|6.78
U,3,1,|6.71|19:35:34|6.7|6.71
U,3,1,||19:35:36|6.69|
I tried some variations, like sending LS_cid and LS_adapter_set in the subscription url, but results are the same.
So:
1. This is intended to work this way or I've misunderstood the specification ?
2. What I'm doing wrong ?
Thanks in advance.