Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
4b0fb073e6 | |||
fc458b6827 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"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",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -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({
|
||||||
|
Reference in New Issue
Block a user