-
June 29th, 2020, 11:08 PM
#1
My code is in CONNECTED:WS-STREAMING -> can't get to CONNECTED:HTTP-STREAMING
Hello y'all,
I'm trying to finalize my Lightstreamer lib update. But in my Android project, the onStatusChange returns to me only the CONNECTED:WS-STREAMING. I know from the iOS project that the correct state to be is CONNECTED:HTTP-STREAMING.
log:
2020-06-29 18:59:37.552 3193-3457/br.com.valemobi.agora D/LIGHTSTREAMER: onStatusChange: DISCONNECTED
2020-06-29 18:59:41.194 3193-3485/br.com.valemobi.agora D/LIGHTSTREAMER: onStatusChange: CONNECTING
2020-06-29 18:59:41.522 3193-3485/br.com.valemobi.agora D/LIGHTSTREAMER: onStatusChange: CONNECTED:STREAM-SENSING
2020-06-29 18:59:41.773 3193-3485/br.com.valemobi.agora D/LIGHTSTREAMER: onStatusChange: CONNECTED:WS-STREAMING
I am catching this exception too: E/SubscrException4: Cannot modify an active Subscription, please unsubscribe before applying any change
Maybe there is some clue of what could be missing?
Thanks again,
John, from Brazil.
-
June 30th, 2020, 08:36 AM
#2
Hello John,
The client libraries try the best way to connect to Lightstreamer Server, hence, any of CONNECTED:WS-STREAMING, CONNECTED:HTTP-STREAMING and CONNECTED:HTTP-POLLING can be expected and this can vary depending on the client environment.
Among these, CONNECTED:WS-STREAMING (i.e. streaming over Websocket) is the best case.
The iOS library also connects via Websocket, whenever possibile, unless it is very old; what version are you using?
The mentioned exception is unrelated with the above.
It can be issued by any setter of the Subscription class.
In fact, this class is not a simple bean but has a lifecycle. You can compose the subscription characteristics via setters, but after you submit the subscription (and it becomes "active") you can no longer invoke the setters until you unsubscribe. At this point you can modify the subscription with the setters and resubmit it.
In some way, you must have acted differently.
-
August 25th, 2020, 02:48 PM
#3
Hello,
In .Net how can we specify the connection? I am trying to set it to HTTP-POLLING but I cannot find the setting anywhere.
Thanks,
Rony
-
August 25th, 2020, 03:01 PM
#4
Hello,
Assuming the latest version, to enforce a long-polling connection you can set the ForcedTransport property of the connectionOptions object.
Otherwise, please specify the SDK library version in use.
Similar Threads
-
By jnuckolls in forum Client SDKs
Replies: 1
Last Post: February 8th, 2017, 09:56 AM
-
By cwt237 in forum Client SDKs
Replies: 6
Last Post: September 19th, 2013, 01:05 PM
-
By kpturner in forum Client SDKs
Replies: 12
Last Post: December 20th, 2012, 10:26 AM
-
By LS_Developer in forum Adapter SDKs
Replies: 2
Last Post: April 19th, 2011, 11:03 AM
-
By CHTSENG in forum General
Replies: 29
Last Post: July 14th, 2009, 09:57 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
-
Forum Rules
All times are GMT +1. The time now is 12:38 PM.
Bookmarks