[11:19] hey guys, anyone around? [11:20] I have a question how do you handle client api websocket connections going down [11:21] frankban, teknic: maybe you can help? ^^ [11:22] oops teknico ^^ [11:23] dimitern: maybe :-) go on [11:24] teknico: so there's a way to ping a websocket connection and verify it's still alive [11:24] teknico: are you using this with the gui? [11:26] dimitern: possibly, let me have a look [11:29] dimitern: we use Y.ReconnectingWebSocket [11:29] dimitern: 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 open [11:30] frankban, teknico: So this I presume uses some form of pinging internally? Where's the code? [11:31] dimitern: http://bazaar.launchpad.net/~juju-gui/juju-gui/trunk/view/head:/app/assets/javascripts/reconnecting-websocket.js [11:32] dimitern: invoked from http://bazaar.launchpad.net/~juju-gui/juju-gui/trunk/view/head:/app/store/env/base.js#L172 [11:33] teknico: istm you're reconnecting when the connection is closed, but not actively monitoring whether it's stil alive [11:33] dimitern: yes, that's my understanding too [11:33] teknico: ok, thanks for checking [11:33] dimitern: yw [13:38] dimitern: could you please review https://codereview.appspot.com/9641044 ? === matsubara is now known as matsubara-lunch === matsubara-lunch is now known as matsubara