3.3.2 socket.connected
const socket= io('http://localhost');
socket.on('connect',()=>{
console.log(socket.connected) //true
})Last updated
Was this helpful?
const socket= io('http://localhost');
socket.on('connect',()=>{
console.log(socket.connected) //true
})Last updated
Was this helpful?
Was this helpful?