Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

socket io stream

// to all connected clients
io.emit("hello");

// to all connected clients in the "news" room
io.to("news").emit("hello");
Source by socket.io #
 
PREVIOUS NEXT
Tagged: #socket #io #stream
ADD COMMENT
Topic
Name
3+9 =