showing results for - "emit value from node server"
Maya
05 Jul 2020
1let msg = {message: 'Actual Message', sender: 'Name of sender'}
2io.on('connection', socket => {
3  socket.on('chat message', msg => {
4    io.emit('chat message', msg);
5  });
6}); 
7
similar questions
queries leading to this page
emit value from node server