mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -254,7 +254,7 @@ func (g *GrafanaLive) Init() error {
|
||||
pushWSHandler.ServeHTTP(ctx.Resp, r)
|
||||
}
|
||||
|
||||
g.RouteRegister.Group("/live", func(group routing.RouteRegister) {
|
||||
g.RouteRegister.Group("/api/live", func(group routing.RouteRegister) {
|
||||
group.Get("/ws", g.websocketHandler)
|
||||
}, middleware.ReqSignedIn)
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ export class CentrifugeSrv implements GrafanaLiveSrv {
|
||||
|
||||
constructor() {
|
||||
// build live url replacing scheme in appUrl.
|
||||
const liveUrl = `${config.appUrl.replace('http', 'ws')}live/ws`;
|
||||
const liveUrl = `${config.appUrl.replace('http', 'ws')}api/live/ws`;
|
||||
this.centrifuge = new Centrifuge(liveUrl, {
|
||||
debug: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user