Files
mattermost/wsapi/api.go

22 lines
361 B
Go
Raw Normal View History

// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package wsapi
import (
2017-09-06 23:05:10 -07:00
"github.com/mattermost/mattermost-server/app"
)
func InitRouter() {
2017-09-06 17:12:54 -05:00
app.Global().Srv.WebSocketRouter = app.NewWebSocketRouter()
}
func InitApi() {
InitUser()
InitSystem()
InitStatus()
InitWebrtc()
app.HubStart()
}