@remix_labs/hub-client 2.12921.0-dev → 2.12927.0-dev

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/common.js +4 -28
  2. package/package.json +1 -1
package/common.js CHANGED
@@ -388,27 +388,6 @@ class Channel {
388
388
  })
389
389
  }
390
390
 
391
- unsubscribeClient(clientName) {
392
- return new Promise((resolve, reject) => {
393
- let reqId = this.reqId + 1;
394
- let subId = reqId + 1;
395
- this.reqId = subId;
396
- this.expect.set(reqId, (resp => {
397
- this.expect.delete(reqId);
398
- if (resp.data.error == null) {
399
- resolve(resp.data)
400
- } else
401
- reject(resp.data);
402
- }));
403
- let unsubMsg =
404
- { _rmx_type: "msg_hub_unsubscribeClient",
405
- reqId: reqId,
406
- clientName: clientName
407
- };
408
- this.port.postMessage(unsubMsg)
409
- })
410
- }
411
-
412
391
  setLocalPubTopic(topic) {
413
392
  return new Promise((resolve, reject) => {
414
393
  let reqId = this.reqId + 1;
@@ -447,7 +426,7 @@ class Channel {
447
426
  })
448
427
  }
449
428
 
450
- newChannel(clientName) {
429
+ newChannel() {
451
430
  return new Promise((resolve, reject) => {
452
431
  let reqId = this.reqId + 1;
453
432
  this.reqId = reqId;
@@ -462,8 +441,7 @@ class Channel {
462
441
  }));
463
442
  let msg =
464
443
  { _rmx_type: "msg_hub_newChannel",
465
- reqId: reqId,
466
- clientName: clientName
444
+ reqId: reqId
467
445
  };
468
446
  this.port.postMessage(msg);
469
447
  })
@@ -553,7 +531,7 @@ class Worker {
553
531
  })
554
532
  }
555
533
 
556
- newChannel(clientName) {
534
+ newChannel() {
557
535
  let thisworker = this;
558
536
  return new Promise((resolve, reject) => {
559
537
  thisworker.expect.push(resp => {
@@ -565,9 +543,7 @@ class Worker {
565
543
  reject(resp.data)
566
544
  });
567
545
  let msg =
568
- { "_rmx_type": "msg_hub_newChannel",
569
- clientName: clientName
570
- };
546
+ { "_rmx_type": "msg_hub_newChannel" };
571
547
  thisworker.worker.postMessage(msg);
572
548
  })
573
549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix_labs/hub-client",
3
- "version": "2.12921.0-dev",
3
+ "version": "2.12927.0-dev",
4
4
  "description": "talk to the Hub web worker",
5
5
  "main": "node.js",
6
6
  "browser": "index.js",