Realtime application framework (Node.JS server)
~5.2.0
~7.4.2
~5.1.0
~7.4.2
~5.1.0
~7.4.2
~5.1.0
~7.4.2
Blog post: https://socket.io/blog/socket-io-4-1-0/
engine.io
)engine.io
)~5.1.0
~7.4.2
~5.0.0
~7.4.2
Blog post: https://socket.io/blog/socket-io-4-release/ Migration guide: https://socket.io/docs/v3/migrating-from-3-x-to-4-0/
io.to(...)
now returns an immutable operatorPreviously, broadcasting to a given room (by calling io.to()
) would mutate the io instance, which could lead to surprising behaviors, like:
io.to("room1");
io.to("room2").emit(/* ... */); // also sent to room1
// or with async/await
io.to("room3").emit("details", await fetchDetails()); // random behavior: maybe in room3, maybe to all clients
Calling io.to()
(or any other broadcast modifier) will now return an immutable instance.
~5.0.0
~7.4.2
~4.1.0
~7.4.2
~4.1.0
~7.4.2