socket.io-client
Advanced tools
Changelog
3.0.0 (2020-11-05)
// before
socket.on("error", () => {});
// after
socket.on("connect_error", () => {});
the Socket#binary() method is removed, as this use case is now covered by the ability to provide your own parser.
the Socket instance will no longer forward the events of its Manager
Those events can still be accessed on the Manager instance though:
socket.io.on("reconnect", () => {
// ...
});
Changelog
3.0.0-rc3 (2020-10-26)
// before
socket.on("error", () => {});
// after
socket.on("connect_error", () => {});
Changelog
3.0.0-rc1 (2020-10-13)
Those events can still be accessed on the Manager instance though:
socket.io.on("reconnect", () => {
// ...
});
Changelog
2.3.1 (2020-09-30)
The debug
dependency has been reverted to ~3.1.0
, as the newer versions contains ES6 syntax which breaks in IE
browsers.
Please note that this only applied to users that bundle the Socket.IO client in their application, with webpack for example, as the "official" bundles (in the dist/ folder) were already transpiled with babel.
For webpack users, you can also take a look at the webpack-remove-debug plugin.