mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Move WebSocket API to it's own package and add websocket v4 endpoint (#5881)
This commit is contained in:
committed by
George Goldberg
parent
ca8b8d1245
commit
daca0d93f6
21
wsapi/api.go
Normal file
21
wsapi/api.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
package wsapi
|
||||
|
||||
import (
|
||||
"github.com/mattermost/platform/app"
|
||||
)
|
||||
|
||||
func InitRouter() {
|
||||
app.Srv.WebSocketRouter = app.NewWebSocketRouter()
|
||||
}
|
||||
|
||||
func InitApi() {
|
||||
InitUser()
|
||||
InitSystem()
|
||||
InitStatus()
|
||||
InitWebrtc()
|
||||
|
||||
app.HubStart()
|
||||
}
|
||||
Reference in New Issue
Block a user