Results 1 to 4 of 4
  1. #1

    Question 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.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,093
    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.

  3. #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

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,093
    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

  1. Replies: 1
    Last Post: February 8th, 2017, 09:56 AM
  2. How to get SessionId in .NET client code?
    By cwt237 in forum Client SDKs
    Replies: 6
    Last Post: September 19th, 2013, 01:05 PM
  3. Long wait on CONNECTED:STREAM-SENSING in firefox
    By kpturner in forum Client SDKs
    Replies: 12
    Last Post: December 20th, 2012, 10:26 AM
  4. How to disconnect a connected session from MetaAdapter?
    By LS_Developer in forum Adapter SDKs
    Replies: 2
    Last Post: April 19th, 2011, 11:03 AM
  5. Replies: 29
    Last Post: July 14th, 2009, 09:57 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 03:55 AM.
Lightstreamer Logo