We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ea358 commit cec2750Copy full SHA for cec2750
lib/engine.io.js
@@ -26,7 +26,7 @@ exports = module.exports = function() {
26
}
27
28
// if first argument is not an http server, then just make a regular eio server
29
- return new Server(arguments);
+ return new Server(...arguments);
30
};
31
32
/**
test/engine.io.js
@@ -25,6 +25,11 @@ describe("engine", () => {
25
expect(engine).to.be.an(eio.Server);
expect(engine.ws).to.be.ok();
});
+
+ it("should pass options correctly to the Server", () => {
+ const engine = eio({ cors: true });
+ expect(engine.opts).to.have.property("cors", true);
+ });
33
34
35
describe("listen", () => {
0 commit comments