Strumień gniazda io

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

// to all connected clients in the "news" room
io.to("news").emit("hello");
Puzzled Puffin