From 307469312f9a22efeefbcf107423db81cea9a1a1 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 28 Dec 2022 13:51:40 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartsocket.classes.smartsocketclient.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 6b75115..e31bfb5 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartsocket', - version: '2.0.8', + version: '2.0.9', description: 'easy and secure websocket communication' } diff --git a/ts/smartsocket.classes.smartsocketclient.ts b/ts/smartsocket.classes.smartsocketclient.ts index c04a531..206f4d4 100644 --- a/ts/smartsocket.classes.smartsocketclient.ts +++ b/ts/smartsocket.classes.smartsocketclient.ts @@ -95,7 +95,10 @@ export class SmartsocketClient { nodeModuleName: 'socket.io-client', webUrlArg: 'https://cdn.jsdelivr.net/npm/socket.io-client@4/dist/socket.io.js', getFunction: () => { - return (globalThis as any).io; + const socketIoBrowserModule = (globalThis as any).io; + console.log('loaded socket.io for browser'); + console.log(socketIoBrowserModule); + return socketIoBrowserModule; }, }); logger.log('info', 'trying to connect...');