Remove "update" parameter in favour of "sid"

The "update" parameter was used to know if an offer should be treated by
the clients as a renegotiation or a new connection. However, since the
introduction of "sid" this is implicitly known (if the "sid" matches an
existing connection then it is an update, otherwise it is a new
connection), so that specific parameter is no longer needed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2022-04-13 03:05:08 +02:00
parent 3636e69dba
commit 27989752bf
2 changed files with 0 additions and 2 deletions

View file

@ -655,7 +655,6 @@ type AnswerOfferMessage struct {
RoomType string `json:"roomType"`
Payload map[string]interface{} `json:"payload"`
Sid string `json:"sid,omitempty"`
Update bool `json:"update,omitempty"`
}
// Type "transient"

View file

@ -572,7 +572,6 @@ func (s *ClientSession) sendOffer(client McuClient, sender string, streamType st
RoomType: streamType,
Payload: offer,
Sid: client.Sid(),
Update: true,
}
offer_data, err := json.Marshal(offer_message)
if err != nil {