Tags: plantsciences/socket.io-0.9.x
Tags
fix: add timeout method to remote socket (socketio#4558) The RemoteSocket interface, which is returned when the client is connected on another Socket.IO server of the cluster, was lacking the `timeout()` method. Syntax: ```js const sockets = await io.fetchSockets(); for (const socket of sockets) { if (someCondition) { socket.timeout(1000).emit("some-event", (err) => { if (err) { // the client did not acknowledge the event in the given delay } }); } } ``` Related: socketio#4595
chore(release): 2.5.0 Release notes: https://github.com/socketio/socket.io/releases/tag/2.5.0 Diff: socketio/socket.io@2.4.1...2.5.0
PreviousNext