diff options
Diffstat (limited to 'api/websocket.go')
-rw-r--r-- | api/websocket.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/websocket.go b/api/websocket.go index 4b3a9d53b..6de5741f3 100644 --- a/api/websocket.go +++ b/api/websocket.go @@ -13,9 +13,9 @@ import ( "github.com/mattermost/mattermost-server/utils" ) -func InitWebSocket() { +func (api *API) InitWebSocket() { l4g.Debug(utils.T("api.web_socket.init.debug")) - BaseRoutes.Users.Handle("/websocket", ApiAppHandlerTrustRequester(connect)).Methods("GET") + api.BaseRoutes.Users.Handle("/websocket", api.ApiAppHandlerTrustRequester(connect)).Methods("GET") } func connect(c *Context, w http.ResponseWriter, r *http.Request) { |