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 d93ef6a commit a73fa88Copy full SHA for a73fa88
lib/engine.io.js
@@ -3,6 +3,7 @@
3
*/
4
5
var http = require('http');
6
+var https = require('https');
7
8
/**
9
* Invoking the library as a function delegates to attach if the first argument
@@ -20,7 +21,8 @@ var http = require('http');
20
21
exports = module.exports = function () {
22
// backwards compatible use as `.attach`
23
// if first argument is an http server
- if (arguments.length && arguments[0] instanceof http.Server) {
24
+ if (arguments.length &&
25
+ (arguments[0] instanceof http.Server || arguments[0] instanceof https.Server)) {
26
return attach.apply(this, arguments);
27
}
28
0 commit comments