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