fix(core): update
This commit is contained in:
parent
0f3ff2b611
commit
307469312f
@ -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'
|
||||||
}
|
}
|
||||||
|
@ -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...');
|
||||||
|
Loading…
Reference in New Issue
Block a user