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