feat: add redis cache and fanout support

This commit is contained in:
richjohnrambo
2026-08-25 20:54:03 +08:00
parent 07376c70e3
commit f900a08a01
68 changed files with 3949 additions and 5696 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ type videoCall struct {
// Call participants (session sid -> callPartyData).
parties map[string]callPartyData
// Call message seq ID.
seq int
seq int64
// Call message content.
content any
// Call message content mime type.
@@ -300,7 +300,7 @@ func (call *videoCall) messageHead(head map[string]any, newState string, duratio
head = map[string]any{}
}
head["replace"] = ":" + strconv.Itoa(call.seq)
head["replace"] = ":" + strconv.FormatInt(call.seq, 10)
head["webrtc"] = newState
if duration > 0 {