debug log signal/answer

This commit is contained in:
Craig 2020-02-12 00:12:16 +00:00
parent 880f151185
commit 7ac99d1bf7

View File

@ -230,6 +230,8 @@ export abstract class BaseClient extends EventEmitter<BaseEvents> {
this.emit('warn', `attempting to set remote description while peer connected`, payload) this.emit('warn', `attempting to set remote description while peer connected`, payload)
return return
} }
this.emit('debug', `remote description recieved: \n`, payload.sdp)
this._peer!.setRemoteDescription({ type: 'answer', sdp: payload.sdp }) this._peer!.setRemoteDescription({ type: 'answer', sdp: payload.sdp })
} }