From 3cba208b0703e7656a335f94f34e243313e5fa0f Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Mon, 4 Oct 2021 17:10:20 -0300 Subject: [PATCH] feat: enable websocket connection --- app/assets/javascripts/ui_models/application.ts | 2 ++ app/assets/javascripts/ui_models/application_group.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/app/assets/javascripts/ui_models/application.ts b/app/assets/javascripts/ui_models/application.ts index 99161903f..8e219e130 100644 --- a/app/assets/javascripts/ui_models/application.ts +++ b/app/assets/javascripts/ui_models/application.ts @@ -55,6 +55,7 @@ export class WebApplication extends SNApplication { scope: angular.IScope, defaultSyncServerHost: string, public bridge: Bridge, + webSocketUrl: string, ) { super( bridge.environment, @@ -67,6 +68,7 @@ export class WebApplication extends SNApplication { defaultSyncServerHost, AppVersion, isDev, + webSocketUrl, ); this.$compile = $compile; this.scope = scope; diff --git a/app/assets/javascripts/ui_models/application_group.ts b/app/assets/javascripts/ui_models/application_group.ts index 795e7530a..283c43397 100644 --- a/app/assets/javascripts/ui_models/application_group.ts +++ b/app/assets/javascripts/ui_models/application_group.ts @@ -64,6 +64,7 @@ export class ApplicationGroup extends SNApplicationGroup { scope, this.defaultSyncServerHost, this.bridge, + this.webSocketUrl, ); const appState = new AppState( this.$rootScope,