4.3.22 flag_broadcast
io.on('connection',socket=>{
socket.broadcast.emit('an event',{some:"data"}) // 除了发送者,其他人都能收到
})Last updated
Was this helpful?
io.on('connection',socket=>{
socket.broadcast.emit('an event',{some:"data"}) // 除了发送者,其他人都能收到
})Last updated
Was this helpful?
Was this helpful?