Damien Arrachequesne
|
663d326d18
|
feat: add support for v3.x clients
In order to ease the migration to Socket.IO v3, the Engine.IO server
can now communicate with v3.x clients.
```js
const eioServer = require("engine.io")(httpServer, {
allowEIO3: true // false by default
});
```
If `allowEIO3` is false, the v3.x clients will now receive an HTTP 400
response ("Unsupported protocol version").
Note: the code of the v3 parser has been imported from [1] and
browser-related dependencies were removed.
[1]: https://github.com/socketio/engine.io-parser/tree/2.2.1
Related:
- https://github.com/socketio/engine.io-protocol/issues/35
- https://github.com/socketio/socket.io-protocol/issues/21
|
2021-01-14 01:44:52 +01:00 |
|