Commit 663d326
committed
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:
- socketio/engine.io-protocol#35
- socketio/socket.io-protocol#211 parent 9b62152 commit 663d326
File tree
17 files changed
+1013
-66
lines changed- lib
- parser-v3
- transports
- test
- fixtures
17 files changed
+1013
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
0 commit comments