Compare commits

..

2 Commits

Author SHA1 Message Date
da39d52975 2.0.9 2022-12-28 13:51:41 +01:00
307469312f fix(core): update 2022-12-28 13:51:40 +01:00
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartsocket",
"version": "2.0.8",
"version": "2.0.9",
"description": "easy and secure websocket communication",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",

View File

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

View File

@ -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...');