3.3.1 socket.id
const socket= io('http://localhost');
console.log(socket.id) //undefined
socket.on('connect',()=>{
console.log(socket.id) // xxxx...
})Last updated
Was this helpful?
const socket= io('http://localhost');
console.log(socket.id) //undefined
socket.on('connect',()=>{
console.log(socket.id) // xxxx...
})Last updated
Was this helpful?
Was this helpful?