checkpoint
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user