📅  最后修改于: 2022-03-11 15:03:39.348000             🧑  作者: Mango
io.on('connection', socket => { socket.on('say to someone', (id, msg) => { socket.to(id).emit('my message', msg); });});