Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi rvkvino,

    Please let me suggest some tests to be run:

    1. Have you tried a very simple application with only one page and one subscription just to chek if is ok on a real device?
    2. Could yuo tried your code without the lsClient.enableSharing(...) statement?

    Regards,
    Giuseppe

  2. #12
    Power Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    121
    I have many application with one subscription on one page. I didn't get any issue on that application on real device.
    And also I have tried in this application without using lsClient.enableSharing in this case losing the session after navigate 3 times between connected LS Server page.

    We are on fire, Client making urgent to fix this issue soon. could you please help me to fix this issue soon.

    lightstreamer.subscriptions | INFO | 13:23:07,330 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 13:23:07,332 | 352] Subscription entered the active state {[|Subscription|5|0|1|1||2|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 13:23:07,335 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 13:23:07,336 | 352] Subscription entered the active state {[|Subscription|5|0|2|1||3|] }
    lightstreamer.js:556 lightstreamer.sharing | INFO | 13:23:07,342 | 341] A sharing will now be searched {}
    lightstreamer.js:556 lightstreamer.sharing | INFO | 13:23:07,343 | 312] Start search for an engine {}
    lightstreamer.js:556 lightstreamer.sharing | INFO | 13:23:07,353 | 319] valid engine values found, will try to connect to it {}
    lightstreamer.js:556 lightstreamer.sharing | INFO | 13:23:07,355 | 317] A sharing was found, this will attach to it {}
    lightstreamer.js:556 lightstreamer.sharing | INFO | 13:23:07,357 | 311] Stop search for an engine {}
    controllers.js:773 CONNECTED:HTTP-STREAMING
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 13:23:08,106 | 353] Subscription is now subscribed to {[|Subscription|4|0|1|2|1|2|] }
    lightstreamer.js:556 lightstreamer.grids | INFO | 13:23:08,108 | 411] Cleaning the model {[|liverates|0|0|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 13:23:08,447 | 353] Subscription is now subscribed to {[|Subscription|4|0|2|2|2|3|] }
    Last edited by rvkvino; November 30th, 2017 at 08:53 AM.

  3. #13
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi rvkvino,

    If a single page application work fine, an application that handles 3 distinct and completely independent pages should work fine as well without leveraging the sharing; for sure you give up some optimization but the app still have to work.
    The attached log refers to a scenario with the sharing active and also does not point out any kind of problem.

    I would suggest to try to understand why the session was lost browsing through the pages.
    Please could you collect the log in this specific case? Furthermore could you add application log in this LightstreamerClient event?

    Regards,
    Giuseppe

  4. #14
    Power Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    121
    Please check now, I have commanded the connection sharing code and below code given in all the three page,
    var protocolToUse = document.location.protocol != "file:" ? document.location.protocol : "http:";
    var portToUse = document.location.protocol == "https:" ? "443" : "8080";
    var lsClient = new Lightstreamer.LightstreamerClient(protocolToUse+"//mydomain.com:"+portToUse,"STOCKLIST_REMOTE");
    lsClient.connectionOptions.setHttpExtraHeaders({"u sername" : "bullion"});
    //lsClient.enableSharing(new Lightstreamer.ConnectionSharing("CommonConnection" , "ATTACH", "CREATE"));
    //lsClient.connectionOptions.setCookieHandlingRequir ed(true);

    lsClient.addListener({
    onStatusChange: function(newStatus) {
    console.log(newStatus);
    if(newStatus == "CONNECTED:HTTP-STREAMING"){
    }else if(newStatus == 'DISCONNECTED:WILL-RETRY'){
    }
    }
    });
    lsClient.connect();




    Now log shows like,
    lightstreamer.subscriptions | INFO | 15:05:07,524 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:07,525 | 352] Subscription entered the active state {[|Subscription|5|0|1|1||2|] }
    controllers.js:1704 displaycommodity(length): 1
    controllers.js:56 loginstatus enter: true
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:07,543 | 273] Opening a new session and starting automatic reconnections. {}
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:07,547 | 66] Opening new session {[|SessionWS|false|false|1|0|8600|1|0|||false|false|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:07,574 | 191] Control requests queue is now empty {}
    lightstreamer.js:556 lightstreamer.grids | INFO | 15:05:08,801 | 411] Cleaning the model {[|liveratelist|0|0|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:24,568 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:24,568 | 352] Subscription entered the active state {[|Subscription|5|0|1|1||2|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:24,572 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:24,573 | 352] Subscription entered the active state {[|Subscription|5|0|2|1||3|] }
    controllers.js:56 loginstatus enter: true
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:24,582 | 273] Opening a new session and starting automatic reconnections. {}
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:24,587 | 66] Opening new session {[|SessionWS|false|false|1|0|7800|1|0|||false|false|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:24,610 | 191] Control requests queue is now empty {}
    controllers.js:773 CONNECTING
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:24,960 | 247] Session started {[object Object] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:25,1 | 185] Stop sending reverse heartbeat to the server {[|ControlConnectionHandler|IDLE||50000|] }
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:25,17 | 67] Binding session {[|SessionWS|false|false|4|3|7803|5|0|Sdf9c492f868f1 580T0522581|[|WebSocketConnection|false|||false|]|false|false|] }
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:25,19 | 241] Unable to establish session of the current type. Switching session type {WS Streaming prepare HTTP Streaming }
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:25,26 | 244] Switching current session type {prepare HTTP Streaming }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:25,34 | 185] Stop sending reverse heartbeat to the server {[|ControlConnectionHandler|IDLE||50000|] }
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:25,38 | 67] Binding session {[|SessionHTTP|false|false|4|1|7804|0|Sdf9c492f868f1 580T0522581|false|false|] }
    controllers.js:773 CONNECTED:STREAM-SENSING
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:25,84 | 186] New request to be sent to server {[|ControlConnectionHandler|IDLE||50000|] [object Object] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:25,94 | 189] Control request sent through HTTP connection {}
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:25,95 | 186] New request to be sent to server {[|ControlConnectionHandler|WAITING RESP|[|ControlRequestBatch|1|1|]|50000|] [object Object] }
    controllers.js:773 CONNECTED:HTTP-STREAMING
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:25,789 | 192] Control request got answer {4 }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:25,802 | 353] Subscription is now subscribed to {[|Subscription|4|0|1|2|1|2|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:25,867 | 189] Control request sent through HTTP connection {}
    lightstreamer.js:556 lightstreamer.grids | INFO | 15:05:25,873 | 411] Cleaning the model {[|liverates|0|0|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:26,194 | 192] Control request got answer {7 }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:26,216 | 353] Subscription is now subscribed to {[|Subscription|4|0|2|2|2|3|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:26,235 | 191] Control requests queue is now empty {}
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:27,996 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:27,997 | 352] Subscription entered the active state {[|Subscription|5|0|1|1||2|] }
    controllers.js:1704 displaycommodity(length): 1
    controllers.js:56 loginstatus enter: true
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:28,6 | 273] Opening a new session and starting automatic reconnections. {}
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:28,11 | 66] Opening new session {[|SessionWS|false|false|1|0|4200|1|0|||false|false|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:28,30 | 191] Control requests queue is now empty {}
    controllers.js:1538 CONNECTING
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:28,367 | 247] Session started {[object Object] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:28,379 | 185] Stop sending reverse heartbeat to the server {[|ControlConnectionHandler|IDLE||50000|] }
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:28,393 | 67] Binding session {[|SessionWS|false|false|4|3|4203|5|0|S3bd7056bf580c 628T0525997|[|WebSocketConnection|false|||false|]|false|false|] }
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:28,394 | 241] Unable to establish session of the current type. Switching session type {WS Streaming prepare HTTP Streaming }
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:28,396 | 244] Switching current session type {prepare HTTP Streaming }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:28,401 | 185] Stop sending reverse heartbeat to the server {[|ControlConnectionHandler|IDLE||50000|] }
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:28,401 | 67] Binding session {[|SessionHTTP|false|false|4|1|4204|0|S3bd7056bf580c 628T0525997|false|false|] }
    controllers.js:1538 CONNECTED:STREAM-SENSING
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:28,426 | 186] New request to be sent to server {[|ControlConnectionHandler|IDLE||50000|] [object Object] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:28,446 | 189] Control request sent through HTTP connection {}
    controllers.js:1538 CONNECTED:HTTP-STREAMING
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:29,187 | 192] Control request got answer {4 }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:29,201 | 353] Subscription is now subscribed to {[|Subscription|4|0|1|2|1|2|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:29,224 | 191] Control requests queue is now empty {}
    lightstreamer.js:556 lightstreamer.grids | INFO | 15:05:29,231 | 411] Cleaning the model {[|liveratelist|0|0|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:33,53 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:33,53 | 352] Subscription entered the active state {[|Subscription|5|0|1|1||2|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:33,54 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:33,55 | 352] Subscription entered the active state {[|Subscription|5|0|2|1||3|] }
    controllers.js:56 loginstatus enter: true
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:33,61 | 273] Opening a new session and starting automatic reconnections. {}
    lightstreamer.js:556 lightstreamer.session | INFO | 15:05:33,66 | 66] Opening new session {[|SessionWS|false|false|1|0|1600|1|0|||false|false|] }
    lightstreamer.js:556 lightstreamer.subscriptions | INFO | 15:05:33,85 | 191] Control requests queue is now empty {}

  5. #15
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi rvkvino,

    Also this log does not show anything wrong.
    There are two sessions that start regularly and subscriptions are also successful.

    Please, could you describe in detail the actions taken in the test and the wrong behavior observed?

    Thank you,
    Giuseppe

  6. #16
    Power Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    121
    Click image for larger version. 

Name:	slntradeissue.jpg 
Views:	738 
Size:	62.5 KB 
ID:	232
    Please check this screen, I have explained in this images. I'm remain we are using ionic cordova framework to develop the app.

  7. #17
    Power Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    121
    This below log taken from mobile device execution log:
    file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.sharing | DEBUG | 16:57:12,802 | 2] Broadcasting setting to shared LightstreamerClient instances {serverAddress http://slnbullion.com:8080/ }
    11-30 16:57:12.804: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | DEBUG | 16:57:12,802 | 2] Broadcasting setting to shared LightstreamerClient instances {serverAddress http://slnbullion.com:8080/ }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.804: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.sharing | DEBUG | 16:57:12,803 | 2] Broadcasting setting to shared LightstreamerClient instances {adapterSet SLNSTOCKLISTDEMO_REMOTE }
    11-30 16:57:12.805: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | DEBUG | 16:57:12,803 | 2] Broadcasting setting to shared LightstreamerClient instances {adapterSet SLNSTOCKLISTDEMO_REMOTE }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.806: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.sharing | DEBUG | 16:57:12,804 | 2] Broadcasting setting to shared LightstreamerClient instances {httpExtraHeaders username
    11-30 16:57:12.806: D/SystemWebChromeClient(18862): slnbullionche
    11-30 16:57:12.806: D/SystemWebChromeClient(18862): }
    11-30 16:57:12.806: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | DEBUG | 16:57:12,804 | 2] Broadcasting setting to shared LightstreamerClient instances {httpExtraHeaders username
    11-30 16:57:12.806: I/chromium(18862): slnbullionche
    11-30 16:57:12.806: I/chromium(18862): }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.809: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 557 : lightstreamer.sharing | WARN | 16:57:12,807 | 338] Forcing preventCrossWindowShare because page is on file:/// {}
    11-30 16:57:12.809: I/chromium(18862): [INFO:CONSOLE(557)] "lightstreamer.sharing | WARN | 16:57:12,807 | 338] Forcing preventCrossWindowShare because page is on file:/// {}", source: file:///android_asset/www/js/lightstreamer.js (557)
    11-30 16:57:12.855: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.subscriptions | DEBUG | 16:57:12,855 | 362] Adapter Set assigned {[|Subscription|1|0||0|||] SLNQUOTE_ADAPTER }
    11-30 16:57:12.855: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.subscriptions | DEBUG | 16:57:12,855 | 362] Adapter Set assigned {[|Subscription|1|0||0|||] SLNQUOTE_ADAPTER }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.856: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.subscriptions | DEBUG | 16:57:12,855 | 366] Snapshot Required assigned {[|Subscription|1|0||0|||] yes }
    11-30 16:57:12.856: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.subscriptions | DEBUG | 16:57:12,855 | 366] Snapshot Required assigned {[|Subscription|1|0||0|||] yes }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.856: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.subscriptions | INFO | 16:57:12,856 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    11-30 16:57:12.856: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.subscriptions | INFO | 16:57:12,856 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.857: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.subscriptions | INFO | 16:57:12,856 | 352] Subscription entered the active state {[|Subscription|5|0|1|1||2|] }
    11-30 16:57:12.857: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.subscriptions | INFO | 16:57:12,856 | 352] Subscription entered the active state {[|Subscription|5|0|1|1||2|] }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.857: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.subscriptions | DEBUG | 16:57:12,857 | 362] Adapter Set assigned {[|Subscription|1|0||0|||] SLNQUOTE_ADAPTER }
    11-30 16:57:12.857: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.subscriptions | DEBUG | 16:57:12,857 | 362] Adapter Set assigned {[|Subscription|1|0||0|||] SLNQUOTE_ADAPTER }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.858: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.subscriptions | DEBUG | 16:57:12,857 | 366] Snapshot Required assigned {[|Subscription|1|0||0|||] yes }
    11-30 16:57:12.858: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.subscriptions | DEBUG | 16:57:12,857 | 366] Snapshot Required assigned {[|Subscription|1|0||0|||] yes }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.858: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.subscriptions | INFO | 16:57:12,858 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }
    11-30 16:57:12.858: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.subscriptions | INFO | 16:57:12,858 | 10] Subscribing subscription {[|Subscription|1|0||0|||] }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.859: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.subscriptions | INFO | 16:57:12,858 | 352] Subscription entered the active state {[|Subscription|5|0|2|1||3|] }
    11-30 16:57:12.859: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.subscriptions | INFO | 16:57:12,858 | 352] Subscription entered the active state {[|Subscription|5|0|2|1||3|] }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.859: D/SystemWebChromeClient(18862): file:///android_asset/www/js/controllers.js: Line 56 : loginstatus enter: true
    11-30 16:57:12.859: I/chromium(18862): [INFO:CONSOLE(56)] "loginstatus enter: true", source: file:///android_asset/www/js/controllers.js (56)
    11-30 16:57:12.877: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.sharing | INFO | 16:57:12,877 | 341] A sharing will now be searched {}
    11-30 16:57:12.877: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | INFO | 16:57:12,877 | 341] A sharing will now be searched {}", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.878: D/SystemWebChromeClient(18862):
    11-30 16:57:12.880: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | DEBUG | 16:57:12,879 | 2] Broadcasting setting to shared LightstreamerClient instances {clientsCount 2 }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.881: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.sharing | DEBUG | 16:57:12,880 | 33] New client attached to engine {[|PushPageCollectionHandler|] }
    11-30 16:57:12.881: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | DEBUG | 16:57:12,880 | 33] New client attached to engine {[|PushPageCollectionHandler|] }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:12.891: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.sharing | INFO | 16:57:12,890 | 311] Stop search for an engine {}
    11-30 16:57:12.891: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | INFO | 16:57:12,890 | 311] Stop search for an engine {}", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:15.556: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.sharing | DEBUG | 16:57:15,555 | 2] Broadcasting setting to shared LightstreamerClient instances {serverAddress http://slnbullion.com:8080/ }
    11-30 16:57:15.556: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | DEBUG | 16:57:15,555 | 2] Broadcasting setting to shared LightstreamerClient instances {serverAddress http://slnbullion.com:8080/ }", source: file:///android_asset/www/js/lightstreamer.js (556)
    11-30 16:57:15.556: D/SystemWebChromeClient(18862): file:///android_asset/www/js/lightstreamer.js: Line 556 : lightstreamer.sharing | DEBUG | 16:57:15,555 | 2] Broadcasting setting to shared LightstreamerClient instances {adapterSet SLNSTOCKLISTDEMO_REMOTE }
    11-30 16:57:15.557: I/chromium(18862): [INFO:CONSOLE(556)] "lightstreamer.sharing | DEBUG | 16:57:15,555 | 2] Broadcasting setting to shared LightstreamerClient instances {adapterSet SLNSTOCKLISTDEMO_REMOTE }", source: file:///android_asset/www/js/lightstreamer.js (556)

  8. #18
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi rvkvino,

    The snippet of log is not large enough to understand what's going on.
    In any case it seems that the LightstreamerClient still try to share the connection.
    Maybe that some of the LightstreamerClient instances you have in the client still require the enableSharing?

    Could you try to force an explicit disconnect every time the user change page?

    Regards,
    Giuseppe

  9. #19
    Power Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    121
    Hi,
    As your instruction I have changed the code for every page(All 3 Pages). Now all the page will connect and disconnect when navigate to other page. And also removed sharing. Now also same issue if I connect the page 4 times means it is working after i navigate to same page 5th time it will disconnect the session and trying to reconnect (Status got RECONNECT). But not successfully connected. I need to close the app and restart the app then only connecting.

  10. #20
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi rvkvino,

    It's a strange behavior; an hypothesis that I have got is that ionic has a limited conection pool that once exhausted does not allow new connections (to the same host : port). Please could you check if this hypoetesis makes sense.
    Furthermore, might also be helpful the Lightstreamer server log, with <logger name="LightstreamerLogger.connections" level="INFO"/> of a specific and limited test case.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. How to create 2 engines in one page?
    By dimitarn in forum Client SDKs
    Replies: 5
    Last Post: December 10th, 2009, 11:52 AM
  2. More tables in one page scenario
    By cbrogliato in forum Client SDKs
    Replies: 1
    Last Post: October 2nd, 2009, 03:13 PM
  3. Replies: 5
    Last Post: July 17th, 2008, 11:01 AM
  4. Problem connecting GI to LS server
    By camerone in forum Client SDKs
    Replies: 1
    Last Post: August 20th, 2007, 03:37 PM
  5. Replies: 1
    Last Post: March 15th, 2007, 03:44 PM

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 06:36 AM.