Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to send a message to a particular client with socket.io

io.sockets.in('user1@example.com').emit('new_msg', {msg: 'hello'});
 
PREVIOUS NEXT
Tagged: #How #send #message #client
ADD COMMENT
Topic
Name
4+2 =