📜  io.emit 与 socket.emit - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:03.456000             🧑  作者: Mango

代码示例2
socket.emit('message', "this is a test"); //sending to sender-client only
io.emit('message', "this is a test"); //sending to all clients, include sender