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

@ -1,5 +1,6 @@
import { NostrEvent, OkResponse, SystemInterface } from "@snort/system";
import { removeUndefined } from "@snort/shared";
import {getWebRtcPool} from "@/webrtc";
export async function sendEventToRelays(
system: SystemInterface,
@ -8,6 +9,7 @@ export async function sendEventToRelays(
setResults?: (x: Array<OkResponse>) => void,
) {
console.log("sendEventToRelays", ev, customRelays);
getWebRtcPool()?.send(ev);
if (customRelays) {
return removeUndefined(
await Promise.all(