summaryrefslogtreecommitdiffstats
path: root/wsapi/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'wsapi/user.go')
-rw-r--r--wsapi/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsapi/user.go b/wsapi/user.go
index 7c4bdfa59..ccb6a3c3d 100644
--- a/wsapi/user.go
+++ b/wsapi/user.go
@@ -13,7 +13,7 @@ import (
func InitUser() {
l4g.Debug(utils.T("wsapi.user.init.debug"))
- app.Srv.WebSocketRouter.Handle("user_typing", ApiWebSocketHandler(userTyping))
+ app.Global().Srv.WebSocketRouter.Handle("user_typing", ApiWebSocketHandler(userTyping))
}
func userTyping(req *model.WebSocketRequest) (map[string]interface{}, *model.AppError) {