Threads progress

This commit is contained in:
2022-12-18 22:23:52 +00:00
parent e6ef1a5bc9
commit e617d6d528
13 changed files with 131 additions and 57 deletions

View File

@ -31,7 +31,7 @@ export default class Connection {
break;
}
case "EOSE": {
// ignored for now
this._OnEnd(msg[1]);
break;
}
default: {
@ -90,7 +90,15 @@ export default class Connection {
if (this.Subscriptions[subId]) {
this.Subscriptions[subId].OnEvent(ev);
} else {
console.warn("No subscription for event!");
console.warn(`No subscription for event! ${subId}`);
}
}
_OnEnd(subId) {
if (this.Subscriptions[subId]) {
this.Subscriptions[subId].OnEnd(this);
} else {
console.warn(`No subscription for end! ${subId}`);
}
}
}