diff options
Diffstat (limited to 'api/web_hub.go')
-rw-r--r-- | api/web_hub.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/web_hub.go b/api/web_hub.go index 89f9891f8..c4abc5a7a 100644 --- a/api/web_hub.go +++ b/api/web_hub.go @@ -4,6 +4,7 @@ package api import ( + "fmt" l4g "github.com/alecthomas/log4go" "github.com/mattermost/platform/einterfaces" @@ -61,6 +62,10 @@ func InvalidateCacheForChannel(channelId string) { func (h *Hub) Register(webConn *WebConn) { h.register <- webConn + + msg := model.NewWebSocketEvent("", "", webConn.UserId, model.WEBSOCKET_EVENT_HELLO) + msg.Add("server_version", fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgHash)) + go Publish(msg) } func (h *Hub) Unregister(webConn *WebConn) { |