Bug Fixes
- add package name in nested package.json (53d8fca), closes socketio/socket.io-client#1513
- fix
socket.disconnect().connect()
usage (99c2cb8) - prevent socket from reconnecting after middleware failure (d54d12c)
Features
- add timeout feature (ccf7998)
socket.timeout(5000).emit("my-event", (err) => {
if (err) {
// the server did not acknowledge the event in the given delay
}
});
Links:
- Diff: 4.3.2...4.4.0
- Server release: 4.4.0
- engine.io-client version:
~6.1.1
(diff) - ws version:
~8.2.3
Size of the bundles:
min | min+gzip | |
---|---|---|
socket.io.min.js | 40.4 KB (+ 0.4 KB ⬆️) | 13.1 KB (+ 0.1 KB ⬆️) |
socket.io.msgpack.min.js | 45.6 KB (+ 0.4 KB ⬆️) | 14.2 KB (-) |
socket.io.esm.min.js | 33.1 KB (+ 0.3 KB ⬆️) | 11.3 KB (+ 0.2 KB ⬆️) |