Allow sending intra cluster WS events reliably (#19594)

Этот коммит содержится в:
Claudio Costa
2022-02-22 13:43:38 +01:00
коммит произвёл GitHub
родитель 501d454af5
Коммит 09eb6fb4d7
3 изменённых файлов: 27 добавлений и 1 удалений

Просмотреть файл

@@ -90,6 +90,9 @@ type WebsocketBroadcast struct {
TeamId string `json:"team_id"` // broadcast only occurs for users in this team
ContainsSanitizedData bool `json:"-"`
ContainsSensitiveData bool `json:"-"`
// ReliableClusterSend indicates whether or not the message should
// be sent through the cluster using the reliable, TCP backed channel.
ReliableClusterSend bool `json:"-"`
}
func (wb *WebsocketBroadcast) copy() *WebsocketBroadcast {