summaryrefslogtreecommitdiffstats
path: root/app/web_conn.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/web_conn.go')
-rw-r--r--app/web_conn.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/web_conn.go b/app/web_conn.go
index 1cab36a2a..43047a881 100644
--- a/app/web_conn.go
+++ b/app/web_conn.go
@@ -116,7 +116,9 @@ func (c *WebConn) WritePump() {
skipSend := false
if len(c.Send) >= SEND_SLOW_WARN {
// When the pump starts to get slow we'll drop non-critical messages
- if msg.EventType() == model.WEBSOCKET_EVENT_TYPING || msg.EventType() == model.WEBSOCKET_EVENT_STATUS_CHANGE {
+ if msg.EventType() == model.WEBSOCKET_EVENT_TYPING ||
+ msg.EventType() == model.WEBSOCKET_EVENT_STATUS_CHANGE ||
+ msg.EventType() == model.WEBSOCKET_EVENT_CHANNEL_VIEWED {
l4g.Info(fmt.Sprintf("websocket.slow: dropping message userId=%v type=%v channelId=%v", c.UserId, msg.EventType(), evt.Broadcast.ChannelId))
skipSend = true
}