@cuecue/socketio 0.0.32 → 0.0.33

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -9
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -376,21 +376,13 @@ class ServerOutput extends BaseServer {
376
376
 
377
377
  async send(...args) {
378
378
  this.debug('send: %o', args);
379
- const {
380
- namespace = null
381
- } = this.options;
382
-
383
- if (namespace !== null) {
384
- return this.sendToNamespace(namespace, ...args);
385
- }
386
-
387
379
  this.namespace.send(...args);
388
380
  return Promise.resolve();
389
381
  }
390
382
 
391
383
  async sendToNamespace(namespace, ...args) {
392
384
  this.debug('send: %o', args);
393
- this.namespace.of(namespace).send(...args);
385
+ this.io.of(namespace).send(...args);
394
386
  return Promise.resolve();
395
387
  }
396
388
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuecue/socketio",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
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.32",
43
+ "@cuecue/core": "^0.0.33",
44
44
  "debug": "^4.3.1",
45
45
  "lodash": "^4.17.20",
46
46
  "socket.io": "^4.1.2",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "ea2dab28c212c792af3cf1da9ef5e6603c408207"
53
+ "gitHead": "d1b75d2689630be436bf18e1fda1a8d48365a84d"
54
54
  }