/srv/irclogs.ubuntu.com/2013/05/27/#juju-gui.txt

dimiternhey guys, anyone around?11:19
dimiternI have a question how do you handle client api websocket connections going down11:20
dimiternfrankban, teknic: maybe you can help? ^^11:21
dimiternoops teknico ^^11:22
teknicodimitern: maybe :-) go on11:23
dimiternteknico: so there's a way to ping a websocket connection and verify it's still alive11:24
dimiternteknico: are you using this with the gui?11:24
teknicodimitern: possibly, let me have a look11:26
teknicodimitern: we use Y.ReconnectingWebSocket11:29
frankbandimitern: IIRC we use a reconnecting websocket, reconnecting when the onclose message arrives. The websocket connection should have a readyState attr set to 1 if the connection is open11:29
dimiternfrankban, teknico: So this I presume uses some form of pinging internally? Where's the code?11:30
teknicodimitern: http://bazaar.launchpad.net/~juju-gui/juju-gui/trunk/view/head:/app/assets/javascripts/reconnecting-websocket.js11:31
teknicodimitern: invoked from http://bazaar.launchpad.net/~juju-gui/juju-gui/trunk/view/head:/app/store/env/base.js#L17211:32
dimiternteknico: istm you're reconnecting when the connection is closed, but not actively monitoring whether it's stil alive11:33
teknicodimitern: yes, that's my understanding too11:33
dimiternteknico: ok, thanks for checking11:33
teknicodimitern: yw11:33
frankbandimitern: could you please review https://codereview.appspot.com/9641044 ? 13:38
=== matsubara is now known as matsubara-lunch
=== matsubara-lunch is now known as matsubara

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!