when below error is occur? ignoring answer for old...
# ask-ai
b
when below error is occur? ignoring answer for old offer negotiation disconnected
t
Thanks for reaching out, 최윤지. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The message "ignoring answer for old offer" in LiveKit occurs during WebRTC negotiation when an answer is received that does not correspond to the most recent offer that was sent. Specifically, if the received answer's
offerId
does not match the
latestOfferId
, LiveKit will log this warning and ignore the outdated answer. This helps prevent negotiation issues caused by out-of-sequence signaling messages. Example (from code):
Copy code
if (sd.type === 'answer' && this.latestOfferId > 0 && offerId > 0 && offerId !== this.latestOfferId) {
  this.log.warn('ignoring answer for old offer'...)
  return false;
}
At this time, I do not have information on the specific message "negotiation disconnected" in the available documentation. Sources: src/api/SignalClient.ts