-
May 10th, 2019, 07:00 PM
#1
Problem with multiple subscribe
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/lights...col=TLCP-2.1.0
PARAMS: LS_cid=mgQkwtwdysogQz2BJ4Ji+kOj2Bg\r\nLS_adapter_s et=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/lights...f7M14aT3525526
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=stoc k_name+last_price+time+bid+ask&LS_data_adapter=QUO TE_ADAPTER&LS_mode=MERGE\r\nLS_reqId=3&LS_op=add&L S_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.
Similar Threads
-
By rperseguini in forum Client SDKs
Replies: 2
Last Post: May 13th, 2019, 01:49 PM
-
By HassanShehata in forum Adapter SDKs
Replies: 1
Last Post: May 24th, 2016, 08:31 AM
-
By engcoder in forum Client SDKs
Replies: 7
Last Post: January 27th, 2016, 05:27 PM
-
By chrisware in forum Client SDKs
Replies: 3
Last Post: July 29th, 2009, 09:27 AM
-
By CitiMan in forum Adapter SDKs
Replies: 8
Last Post: November 30th, 2006, 04:26 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 05:16 AM.
Bookmarks