You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change is necessary to get rid of:
> Critical dependency: the request of a dependency is an expression
when bundling the server with webpack.
BREAKING CHANGE: the syntax of the "wsEngine" option is updated
Before:
```js
const eioServer = require("engine.io")(httpServer, {
wsEngine: "eiows"
});
```
After:
```js
const eioServer = require("engine.io")(httpServer, {
wsEngine: require("eiows").Server
});
```
Related: #609
wsEngine:'uws'// requires having uws as dependency
191
+
wsEngine:require('eiows').Server// requires having eiows as dependency
192
192
});
193
193
194
194
server.on('connection', /* ... */);
@@ -249,7 +249,7 @@ to a single process.
249
249
contains the client sid to send as part of handshake response
250
250
headers. This cookie might be used for sticky-session. Defaults to not sending any cookie (`false`).
251
251
See [here](https://github.com/jshttp/cookie#options-1) for all supported options.
252
-
-`wsEngine` (`String`): what WebSocket server implementation to use. Specified module must conform to the `ws` interface (see [ws module api docs](https://github.com/websockets/ws/blob/master/doc/ws.md)). Default value is `ws`. An alternative c++ addon is also available by installing `uws` module.
252
+
-`wsEngine` (`Function`): what WebSocket server implementation to use. Specified module must conform to the `ws` interface (see [ws module api docs](https://github.com/websockets/ws/blob/master/doc/ws.md)). Default value is `ws`. An alternative c++ addon is also available by installing `eiows` module.
253
253
-`cors` (`Object`): the options that will be forwarded to the cors module. See [there](https://github.com/expressjs/cors#configuration-options) for all available options. Defaults to no CORS allowed.
254
254
-`initialPacket` (`Object`): an optional packet which will be concatenated to the handshake packet emitted by Engine.IO.
255
255
-`allowEIO3` (`Boolean`): whether to support v3 Engine.IO clients (defaults to `false`)
0 commit comments