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, }), });