1. 程式人生 > >socket-io廣播

socket-io廣播

class log emit use conn con sock connect spa

發送給其他人 socket.broadcast.emit(‘userConnection‘, {user: socket.id});

發送給所有人 io.emit(‘userConnection‘, {user: socket.id});

socket-io廣播