Correcting socketio handshake management and different timeouts.