checkpoint prototype
This commit is contained in:
parent
2f755459ff
commit
849a55439b
12 changed files with 169 additions and 50 deletions
|
|
@ -39,7 +39,7 @@ class Broker {
|
|||
for (let t of topic) {
|
||||
this.subscribe(t, listener);
|
||||
}
|
||||
return;
|
||||
return this;
|
||||
}
|
||||
if (typeof topic !== 'string') {
|
||||
console.trace({invalid_topic: topic});
|
||||
|
|
@ -57,6 +57,7 @@ class Broker {
|
|||
channel.push(listener);
|
||||
this.publish(".topic.add", topic);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
unsubscribe(topic, listener) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue