📌  相关文章
📜  从节点服务器发出值 - Javascript 代码示例

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

代码示例1
let msg = {message: 'Actual Message', sender: 'Name of sender'}
io.on('connection', socket => {
  socket.on('chat message', msg => {
    io.emit('chat message', msg);
  });
});