Open FranciZ opened 4 years ago
this.socketIO = new SocketIO(this.server); this.socketIO.connect(); this.socketIO.once('connect', () => { console.log('Socket connected'); });
Is there an equivalent error event or some other way to handle an error when connecting? I'm aware about disconnect but that only triggers if the server has already been connected.
Is there an equivalent error event or some other way to handle an error when connecting? I'm aware about disconnect but that only triggers if the server has already been connected.