Skip to content

Commit

Permalink
refactor: increase negotiation timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Jan 31, 2024
1 parent c712a03 commit 574a07b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/connector/webrtc/ice-candidate-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,20 @@ export const IceCandidateClient = (input: {
)
subjects.iceConnectionStateSubject.next(peerConnection.iceConnectionState)
}
const onIcecandidateError = (event: Event) => {
const { address, errorCode, errorText, port, url } =
event as RTCPeerConnectionIceErrorEvent
logger?.error({
message: '🕸🧊 iceCandidateError',
address,
errorCode,
errorText,
port,
url,
})
}

peerConnection.onicecandidateerror = onIcecandidateError
peerConnection.onicecandidate = onIcecandidate
peerConnection.oniceconnectionstatechange = onIceconnectionStateChange

Expand Down

0 comments on commit 574a07b

Please sign in to comment.