From d3c728d6be35b690da407b792c67c2202fa85903 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Mon, 27 Jan 2025 21:24:12 +0000 Subject: [PATCH] deb --- src/services/webRTC/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/webRTC/index.ts b/src/services/webRTC/index.ts index 9efd59df..22d39386 100644 --- a/src/services/webRTC/index.ts +++ b/src/services/webRTC/index.ts @@ -31,7 +31,6 @@ export default class webRTC { return this.onCandidate(u, message.candidate) } return {} - } private onCandidate = async (u: UserInfo, candidate: string): Promise => { const key = this.getConnectionsKey(u) @@ -49,6 +48,7 @@ export default class webRTC { } private connect = async (u: UserInfo, offer: string): Promise => { const key = this.getConnectionsKey(u) + console.log("connect", key) if (this.connections[key]) { throw new Error('Connection already exists') } @@ -80,6 +80,7 @@ export default class webRTC { const answer = await conn.createAnswer() await conn.setLocalDescription(answer) this.connections[key] = conn + console.log("answer", answer) return { answer: JSON.stringify(answer) } }