Fixed double firing of onConnect event in SocketIOClient handler.