no error event on lost connection?

287 views
Skip to first unread message

Mark Hahn

unread,
Mar 24, 2012, 1:20:34 AM3/24/12
to socket_io
When I intentionally stop my server after my page is connected, I'm not getting any "reconnect_failed" or "error" event in javascript.  The "send xhr" in socket.io fails and chrome says the following ...

GET http://dev.rvwit.at:82/socket.io/1/?t=1332566224544
  Socket.handshakesocket.io.js:1628
  Socket.connectsocket.io.js:1667
  maybeReconnect

But there is no event.  Is this what is supposed to happen? 

I'm running 0.9.2 with default options and chrome(beta).

dbau

unread,
Apr 10, 2012, 5:46:32 AM4/10/12
to Socket.IO
Yup same issue here - a workaround is to count the reconnection
attempts and manually create a reconnect_failed type event when the
number of reconnections has reached your tolerance level.

On Mar 24, 3:20 pm, Mark Hahn <m...@hahnca.com> wrote:
> When I intentionally stop my server after my page is connected, I'm not
> getting any "reconnect_failed" or "error" event in javascript.  The "send
> xhr" in socket.io fails and chrome says the following ...
>
> GEThttp://dev.rvwit.at:82/socket.io/1/?t=1332566224544

Mark Hahn

unread,
Apr 18, 2012, 11:44:23 AM4/18/12
to sock...@googlegroups.com
But if chrome can log an error immediately, why can't socket.io emit an immediate event?

Reply all
Reply to author
Forward
0 new messages