Issue #19295 If session isn't authed, redirect to /.

Dug into the socket.io client source and found that we need an on.("connect_failed") handler.