From a921033cc4b1f91228cfffb7ac4beea86059aae7 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 23 Jan 2021 05:50:02 +0000 Subject: [PATCH] fix(core): update --- ts/smartsocket.classes.smartsocketclient.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/smartsocket.classes.smartsocketclient.ts b/ts/smartsocket.classes.smartsocketclient.ts index 5a910b8..7e45a49 100644 --- a/ts/smartsocket.classes.smartsocketclient.ts +++ b/ts/smartsocket.classes.smartsocketclient.ts @@ -85,6 +85,7 @@ export class SmartsocketClient { socket: await socketIoClient.connect(socketUrl, { multiplex: false, reconnectionAttempts: 5, + rejectUnauthorized: socketUrl.startsWith('https://localhost') ? false : true, }), });