summaryrefslogtreecommitdiffstats
path: root/api/websocket.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/websocket.go')
-rw-r--r--api/websocket.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/websocket.go b/api/websocket.go
index 6de5741f3..c90968e7c 100644
--- a/api/websocket.go
+++ b/api/websocket.go
@@ -8,7 +8,6 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/gorilla/websocket"
- "github.com/mattermost/mattermost-server/app"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
@@ -37,7 +36,7 @@ func connect(c *Context, w http.ResponseWriter, r *http.Request) {
wc := c.App.NewWebConn(ws, c.Session, c.T, c.Locale)
if len(c.Session.UserId) > 0 {
- app.HubRegister(wc)
+ c.App.HubRegister(wc)
}
go wc.WritePump()