From a4f363a50b7807de9ac086ee0e62442a7645f5e8 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 29 Jun 2017 14:11:20 -0700 Subject: PLT-6610 adding the view channel event as skippable (#6800) --- app/web_conn.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/web_conn.go') 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 } -- cgit v1.2.3-1-g7c22