fix(core): update
This commit is contained in:
parent
f27b9f8143
commit
fc458b6827
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartsocket',
|
name: '@pushrocks/smartsocket',
|
||||||
version: '2.0.13',
|
version: '2.0.14',
|
||||||
description: 'easy and secure websocket communication'
|
description: 'easy and secure websocket communication'
|
||||||
}
|
}
|
||||||
|
@ -96,11 +96,11 @@ export class SmartsocketClient {
|
|||||||
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: () => {
|
||||||
const socketIoBrowserModule = (globalThis as any).io;
|
const socketIoBrowserModule = (globalThis as any).io;
|
||||||
console.log('loaded socket.io for browser');
|
// console.log('loaded socket.io for browser');
|
||||||
return socketIoBrowserModule;
|
return socketIoBrowserModule;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
console.log(socketIoClient);
|
// console.log(socketIoClient);
|
||||||
logger.log('info', 'trying to connect...');
|
logger.log('info', 'trying to connect...');
|
||||||
const socketUrl = `${this.serverUrl}:${this.serverPort}`;
|
const socketUrl = `${this.serverUrl}:${this.serverPort}`;
|
||||||
this.socketConnection = new SocketConnection({
|
this.socketConnection = new SocketConnection({
|
||||||
|
Loading…
Reference in New Issue
Block a user