diff --git a/ui/src/app/services/patch-db/patch-db.factory.ts b/ui/src/app/services/patch-db/patch-db.factory.ts index 7088dfe82..f28d1e361 100644 --- a/ui/src/app/services/patch-db/patch-db.factory.ts +++ b/ui/src/app/services/patch-db/patch-db.factory.ts @@ -22,7 +22,7 @@ export function PatchDbServiceFactory ( source = new WebsocketSource(`ws://localhost:${config.mocks.wsPort}/db`) } } else { - if (supportsWebSockets) { + if (!supportsWebSockets) { source = new PollSource({ ...poll }, embassyApi) } else { const protocol = window.location.protocol === 'http:' ? 'ws' : 'wss'