@cuecue/socketio 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6,13 +6,12 @@ var createDebug = require('debug');
|
|
|
6
6
|
var isArray = require('lodash/isArray');
|
|
7
7
|
var core = require('@cuecue/core');
|
|
8
8
|
var socket_ioClient = require('socket.io-client');
|
|
9
|
-
var
|
|
9
|
+
var socket_io = require('socket.io');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
13
13
|
var createDebug__default = /*#__PURE__*/_interopDefaultLegacy(createDebug);
|
|
14
14
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray);
|
|
15
|
-
var io__default = /*#__PURE__*/_interopDefaultLegacy(io);
|
|
16
15
|
|
|
17
16
|
class Base extends core.BasePlugin {
|
|
18
17
|
constructor({
|
|
@@ -244,10 +243,9 @@ class BaseServer extends core.BasePlugin {
|
|
|
244
243
|
cors,
|
|
245
244
|
path
|
|
246
245
|
};
|
|
247
|
-
this.io =
|
|
246
|
+
this.io = new socket_io.Server(server || port, ioOptions);
|
|
248
247
|
this.namespace = namespace !== null ? this.io.of(namespace) : this.io;
|
|
249
248
|
this.namespace.on('connection', this.onConnection);
|
|
250
|
-
this.io.listen(server || port);
|
|
251
249
|
return Promise.resolve();
|
|
252
250
|
}
|
|
253
251
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuecue/socketio",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@babel/runtime": "^7.12.5",
|
|
43
|
-
"@cuecue/core": "^0.0.
|
|
43
|
+
"@cuecue/core": "^0.0.41",
|
|
44
44
|
"debug": "^4.3.1",
|
|
45
45
|
"lodash": "^4.17.21",
|
|
46
46
|
"socket.io": "^4.1.2",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "54c4e793bd8a40b499eb535e7b5bd201109a3bae"
|
|
54
54
|
}
|