cancel socket.emit in initialize