Reconnect after disconnect without refresh the page.

59 views
Skip to first unread message

unbug lee

unread,
Feb 8, 2013, 9:23:39 AM2/8/13
to wei...@googlegroups.com
Hi,in iOS case,since all http request will be disconnected when the screen dim.after the device awake we have to refresh the page to reconnect so we may continue inspect.then we lost all information we've did before.
But we can do some trick,such as use js to reconnect when we touch the page after the device awake.
So,is there any API for us to do such things?
Thanks.

Patrick Mueller

unread,
Feb 8, 2013, 9:48:10 AM2/8/13
to wei...@googlegroups.com
Seems like this is do-able.  It's just complicated.  It's not hard to try the reconnect, but it will be more difficult to figure out how to keep it from repeatedly trying to reconnect, when something bad happens.  This is an area I just didn't bother with, with weinre, since reloading in most environments isn't that hard, and often you want to refresh your page (code/html changes) anyway.  I did have some code to do this at one point in time, but it was causing too many problems.

I'd be happy to review a patch ...

unbug lee

unread,
Feb 8, 2013, 11:09:43 AM2/8/13
to wei...@googlegroups.com
Glad to heard about it do-able.Is this features on the list of next release?

Patrick Mueller

unread,
Feb 8, 2013, 12:01:15 PM2/8/13
to wei...@googlegroups.com
Unlikely that I will find time to work on this anytime soon.  You should at least open a bug / feature request, if there isn't already one up there.
Reply all
Reply to author
Forward
0 new messages