aboutsummaryrefslogtreecommitdiff
path: root/source/client/remote_user.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/client/remote_user.ts')
-rw-r--r--source/client/remote_user.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/client/remote_user.ts b/source/client/remote_user.ts
index 8318e0b..3cb4867 100644
--- a/source/client/remote_user.ts
+++ b/source/client/remote_user.ts
@@ -35,12 +35,12 @@ export class RemoteUser extends User {
const offer_description = await this.peer.createOffer()
await this.peer.setLocalDescription(offer_description)
const offer = { type: offer_description.type, sdp: offer_description.sdp }
- log("webrtc", "sent offer", offer)
+ log("webrtc", "sent offer", { a: offer })
this.room.websocket_send({ receiver: this.name, offer })
}
async on_offer(offer: RTCSessionDescriptionInit) {
this.negotiation_busy = true
- log("webrtc", "got offer", offer)
+ log("webrtc", "got offer", { a: offer })
const offer_description = new RTCSessionDescription(offer)
await this.peer.setRemoteDescription(offer_description)
this.answer()
@@ -49,12 +49,12 @@ export class RemoteUser extends User {
const answer_description = await this.peer.createAnswer()
await this.peer.setLocalDescription(answer_description)
const answer = { type: answer_description.type, sdp: answer_description.sdp }
- log("webrtc", "sent answer", answer)
+ log("webrtc", "sent answer", { a: answer })
this.room.websocket_send({ receiver: this.name, answer })
this.negotiation_busy = false
}
async on_answer(answer: RTCSessionDescriptionInit) {
- log("webrtc", "got answer", answer)
+ log("webrtc", "got answer", { a: answer })
const answer_description = new RTCSessionDescription(answer)
await this.peer.setRemoteDescription(answer_description)
this.negotiation_busy = false