checkpoint

This commit is contained in:
bobbydigitales
2025-03-25 20:04:52 -07:00
parent 71b5284b0f
commit 0b5fee4aca
12 changed files with 240 additions and 138 deletions

View File

@@ -1,14 +1,12 @@
class PeerManager {
connect(peerID:string) {
connect(peerID: string) {
// Connect to the peer that has the peer id peerID
}
disconnect(peerID:string) {
disconnect(peerID: string) {
}
}
class PeerConnection {
static config = {
iceServers: [
@@ -17,13 +15,13 @@ class PeerConnection {
{ urls: "stun:stun2.l.google.com" },
{ urls: "stun:stun3.l.google.com" },
{ urls: "stun:stun4.l.google.com" },
],};
],
};
}
const config = {
iceServers: [{ urls: "stun:stun.mystunserver.tld" }],
};
@@ -31,7 +29,7 @@ const config = {
let polite = true;
// const signaler = new SignalingChannel();
const signaler:any = {}
const signaler: any = {}
const pc = new RTCPeerConnection(config);