Tue Aug 31 2021 22:22:29 GMT+0000 (Coordinated Universal Time)
Saved by @CleverIT
checkStatus(): void { this.socket.on('connect', () => { console.log('Connect to Socket Server...'); this.socketStatus = true; }); this.socket.on('disconnect', () => { console.log('Disconnect from Socket Server...'); this.socketStatus = false; }); }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments