feat: add redis cache and fanout support
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user