Session migration (#319)

* migrate between nodes

* session migration

* bug fix

* use version instead of query parameter

* clean code

* clean

* merge master

* solve comments

* solve comment

* update go.mod

Co-authored-by: cnderrauber <zengjie9004@gmail.com>
This commit is contained in:
cnderrauber
2022-01-08 18:54:23 +08:00
committed by GitHub
co-authored by cnderrauber
parent ecf9590d56
commit 8582ca4c9b
21 changed files with 896 additions and 62 deletions
+6
View File
@@ -85,6 +85,12 @@ func HandleParticipantSignal(room types.Room, participant types.Participant, req
pLogger.Warnw("could not update subscription permissions", err,
"permissions", msg.SubscriptionPermissions)
}
case *livekit.SignalRequest_SyncState:
err := room.SyncState(participant, msg.SyncState)
if err != nil {
pLogger.Warnw("could not sync subscribe state", err,
"state", msg.SyncState)
}
}
return nil
}