📜  socket io socket emit vs send - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:03.993000             🧑  作者: 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