Results 1 to 4 of 4
  1. #1

    how to reconnect after wifi disconnect and connect

    my streaming frozen after internet disconnection . which method i have to i use for reconnect and wait for connection

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    500
    All the latest client libraries automatically reconnect as soon as the connectivity is restored. In a completely transparent way for the application that does not have to do anything.
    Please could you specify the client library type (and the version) in use?

    Regards,
    Giuseppe

  3. #3
    hi , i am using this Lightstreamer.DotNet.Client -Version 3.1.6640.22649 on vb.net when wifi switched off interface invoke close method . when open again service didn't resume on same session
    regards
    tscreators

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    500
    Hi,

    Unfortunately the DotNet Client is one of the client libraries that does not support automatic re-connection and automatic re-subscription yet.
    Indeed, it provides a session recovery mechanism that under certain circumstances can allow the client session to survive to a temporary network outage.

    But please note that the recovery mechanism is triggered only in certain cases depending on client-side circumstances as the exact type of event that the client receives from the network, but also on the server side where can be configured the time a session can be kept alive, after the interruption of a connection at network level, waiting for the Client to attempt a recovery.

    So, could you confirm if you have changed the <session_recovery_millis> parameter in lightstreamer_conf.xml server configuration file?
    Please also could you confirm when you receive the IConnectionListener.OnClose Method? Just after the wifi switched off or when the network has been restored? Did you receive also a OnFailure call?

    Anyway, if you can leverage the Client library log it would be a great help to understand what happens.
    You could refer on this class from our demo, based on log4net, and initialize it with something like this:

    Code:
     Server.SetLoggerProvider(new Log4NetLoggerProviderWrapper());
    Please be sure to set to DEBUG all log levels (https://github.com/Lightstreamer/Lig...ent.exe.config).

    Regards,
    Giuseppe

 

 

Similar Threads

  1. Replies: 6
    Last Post: March 9th, 2016, 08:53 AM
  2. Replies: 3
    Last Post: February 11th, 2014, 08:43 AM
  3. HTTP-Polling reconnect
    By tvhnet2013 in forum General
    Replies: 9
    Last Post: September 10th, 2013, 09:42 AM
  4. Replies: 11
    Last Post: January 9th, 2013, 09:27 AM
  5. config auto-reconnect interval
    By EWANG in forum Client APIs
    Replies: 1
    Last Post: June 30th, 2009, 08:54 AM

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 01:18 AM.