Results 1 to 10 of 10

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jul 2013
    Posts
    39
    Hi,

    after a while you unsubscribe and resubscribe one of the two: is it here that you saw the duplicated snapshot coming through?
    No, it's not.

    I attach new log here.

    My operation flows:
    1. Start server
    2. Start adapters & connect to server
    3. Open test web page in desktop browser to check. It's ok (websocket mode).
    4. Run mobile app (html + javascript + phonegap + android 2.3)
    i. Connect to server (Polling mode)
    ii. Subscribe 2 items: MERGE M.HO.1 and DISTINCT MI.HO.1 --> ok, received data
    iii. Unsubscribe item MERGE M.HO.1
    iv. Subscribe (again) MERGE M.HO.1 --> ok, received data
    v. Unsubscribe (again) MERGE M.HO.1 --> DISCONNECTED --> retry connection --> receive snapshot of item DISTINCT MI.HO.1

    From step (iv) to step (v), I press BACK button on mobile device (actually, it goes back to do step iii). There is only single global instance of LS client on my app.

    Regards,
    Attached Files Attached Files
    Last edited by tvhnet2013; August 30th, 2013 at 05:48 PM.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    the snapshot behavior described is correct: when the client enter the DISCONNECTED status it has lost its session and thus upon reconnection a new snaphot is received. You could disable the snapshot when the client becomes disconnected to not receive it again but then you'll have no guarantees that you've lost some data while you were disconnected.

    About the http polling issue, I think that there is something blocking the streaming. Do you have any antivirus or the like installed on your mobile?
    Can you try to connect to our demo using 3g instead of using your wifi?

 

 

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 05:14 AM.