Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Enable anonymous websocket connections in core (#2074)

Wouter Voorbergb852d190cc55
diff --git a/ui/component/core/src/index.ts b/ui/component/core/src/index.ts
index 69a52f99b..e56388ee1 100644
--- a/ui/component/core/src/index.ts
+++ b/ui/component/core/src/index.ts
@@ -422,11 +422,9 @@ export class Manager implements EventProviderFactory {
this.doIconInit();
- // TODO: Reinstate this once websocket supports anonymous connections
- // if (success) {
- // success = await this.doEventsSubscriptionInit();
- // }
if (success) {
+ success = await this.doEventsSubscriptionInit();
+
if (this._readyCallback) {
await this._readyCallback();
}
@@ -920,11 +918,6 @@ export class Manager implements EventProviderFactory {
protected _onAuthenticated() {
this._authenticated = true;
-
- // TODO: Move events init logic once websocket supports anonymous connections
- if (!this._events) {
- this.doEventsSubscriptionInit();
- }
}
protected async loadAndInitialiseKeycloak(): Promise<boolean> {