checkpoint prototype

This commit is contained in:
Stewart Allen 2023-01-09 14:55:17 -05:00
commit 849a55439b
12 changed files with 169 additions and 50 deletions

View file

@ -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) {