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
+3 -1
View File
@@ -55,7 +55,9 @@ func (t *Topic) runProxy(hub *Hub) {
}
case msg := <-t.serverMsg:
if msg.Info != nil || msg.Pres != nil {
if msg.Data != nil {
t.broadcastToSessions(msg)
} else if msg.Info != nil || msg.Pres != nil {
globals.cluster.routeToTopicIntraCluster(t.name, msg, msg.sess)
} else {
// FIXME: should something be done here?