diff --git a/Step/wwwroot/src/services/hub.ts b/Step/wwwroot/src/services/hub.ts index 866b162d..b027b65c 100644 --- a/Step/wwwroot/src/services/hub.ts +++ b/Step/wwwroot/src/services/hub.ts @@ -12,6 +12,7 @@ import { ModalHelper } from "../modules/base-components"; import { AuthToken } from "src/_base/baseRestService"; declare let $: any; +declare let cmsClient: any; function recalcArrayId(prefix: string, alarms: Array, processid: number = 0) { for (const key in alarms) { @@ -60,7 +61,10 @@ export class Hub { let authData = JSON.parse(window.sessionStorage.getItem("authorizationData") || window.localStorage.getItem("authorizationData")) as AuthToken; if (authData) - $.connection.hub.qs = { "Authorization": authData.access_token }; + $.connection.hub.qs = { "Authorization": authData.access_token}; + + if (typeof cmsClient != "undefined") + $.connection.hub.qs.CmsClientId = cmsClient.getClientID; $.connection.hub.start();