diff options
-rw-r--r-- | source/client/remote_user.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/client/remote_user.ts b/source/client/remote_user.ts index 3cb4867..6986a11 100644 --- a/source/client/remote_user.ts +++ b/source/client/remote_user.ts @@ -1,3 +1,4 @@ +import { servers } from "." import { log } from "./logger" import { Room } from "./room" import { User } from "./user" @@ -10,7 +11,7 @@ export class RemoteUser extends User { constructor(room: Room, name: string) { super(room, name) - this.peer = new RTCPeerConnection() + this.peer = new RTCPeerConnection(servers) this.peer.onicecandidate = ev => { if (!ev.candidate) return room.websocket_send({ ice_candiate: ev.candidate.toJSON(), receiver: this.name }) |