fix(core): update

This commit is contained in:
Philipp Kunz 2022-12-28 13:51:40 +01:00
parent 0f3ff2b611
commit 307469312f
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartsocket', name: '@pushrocks/smartsocket',
version: '2.0.8', version: '2.0.9',
description: 'easy and secure websocket communication' description: 'easy and secure websocket communication'
} }

View File

@ -95,7 +95,10 @@ export class SmartsocketClient {
nodeModuleName: 'socket.io-client', nodeModuleName: 'socket.io-client',
webUrlArg: 'https://cdn.jsdelivr.net/npm/socket.io-client@4/dist/socket.io.js', webUrlArg: 'https://cdn.jsdelivr.net/npm/socket.io-client@4/dist/socket.io.js',
getFunction: () => { 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...'); logger.log('info', 'trying to connect...');