ajaxorg/cloud9 — comment on commit 546faa8ae27ce7c992a3198861b2f07161b587b1
File: plugins-client/cloud9.core/www/core/ide.js line 137
By cadorn:

@fjakobs When socket.io connects **or reconnects** the attach event is now sent.

This works fine when starting the server and refreshing the IDE.

If the server is restarted (without refreshing client) the server does **not** send an attached event back as it seems to not find the session id.

Is there a reason why we distinguish between initial connect (session ID issued) and reconnects (after server restart)?

I think this should work no matter what the state on the server is. If the client comes in with established credentials the server should re-auth the user and use same session ID so the client can simply go "online".

Can you fix this? Once that is done the socket.io online/offline detection should work as intended.