close signal with reliable message (#1658)

* close signal with reliable message

* update protocol
This commit is contained in:
Paul Wells
2023-04-26 22:59:39 -07:00
committed by GitHub
parent 11eedf4514
commit f9f89cd7cf
5 changed files with 45 additions and 64 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func HandleParticipantSignal(room types.Room, participant types.LocalParticipant, req *livekit.SignalRequest, pLogger logger.Logger) error {
participant.UpdateLastSeenSignal()
switch msg := req.Message.(type) {
switch msg := req.GetMessage().(type) {
case *livekit.SignalRequest_Offer:
participant.HandleOffer(FromProtoSessionDescription(msg.Offer))
case *livekit.SignalRequest_Answer: