summaryrefslogtreecommitdiffstats
path: root/cmd/platform/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/server.go')
-rw-r--r--cmd/platform/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go
index 55854dfe4..7f5fbf6e8 100644
--- a/cmd/platform/server.go
+++ b/cmd/platform/server.go
@@ -69,6 +69,7 @@ func runServer(configFileLocation string) {
a.NewServer()
a.InitStores()
a.Srv.Router = api.NewRouter()
+ a.Srv.WebSocketRouter = a.NewWebSocketRouter()
if model.BuildEnterpriseReady == "true" {
a.LoadLicense()
@@ -80,10 +81,9 @@ func runServer(configFileLocation string) {
l4g.Error("Unable to find webapp directory, could not initialize plugins")
}
- wsapi.InitRouter()
api4.Init(a, a.Srv.Router, false)
api3 := api.Init(a, a.Srv.Router)
- wsapi.InitApi()
+ wsapi.Init(a, a.Srv.WebSocketRouter)
web.Init(api3)
if !utils.IsLicensed() && len(utils.Cfg.SqlSettings.DataSourceReplicas) > 1 {