func Publish(message *model.WebSocketEvent) { message.DoPreComputeJson() for _, hub := range hubs { hub.Broadcast(message) } if einterfaces.GetClusterInterface() != nil { einterfaces.GetClusterInterface().Publish(message) } }
func PublishSkipClusterSend(message *model.WebSocketEvent) { message.DoPreComputeJson() for _, hub := range hubs { hub.Broadcast(message) } }