wip webrtc

This commit is contained in:
Martti Malmi
2023-12-21 11:56:49 +02:00
parent 0c2ed147b0
commit 1309937869
11 changed files with 569 additions and 7 deletions

View File

@ -193,7 +193,6 @@ export class NostrSystem extends EventEmitter<NostrSystemEvents> implements Syst
#onEvent(sub: string, ev: TaggedNostrEvent) {
this.#relayMetrics.onEvent(ev.relays[0]);
this.emit("event", ev);
if (!EventExt.isValid(ev)) {
this.#log("Rejecting invalid event %O", ev);
@ -207,6 +206,8 @@ export class NostrSystem extends EventEmitter<NostrSystemEvents> implements Syst
}
}
this.emit("event", ev);
for (const [, v] of this.Queries) {
v.handleEvent(sub, ev);
}