Move WebSocket API to it's own package and add websocket v4 endpoint (#5881)

This commit is contained in:
Joram Wilander
2017-03-28 04:58:19 -04:00
committed by George Goldberg
parent ca8b8d1245
commit daca0d93f6
22 changed files with 370 additions and 96 deletions

21
wsapi/api.go Normal file
View 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()
}