Compare commits

..

4 Commits

Author SHA1 Message Date
5215be946e 2.0.15 2023-02-07 12:32:48 +01:00
b9c67666fa fix(core): update 2023-02-07 12:32:48 +01:00
4b0fb073e6 2.0.14 2022-12-29 13:28:11 +01:00
fc458b6827 fix(core): update 2022-12-29 13:28:11 +01:00
4 changed files with 276 additions and 221 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartsocket", "name": "@pushrocks/smartsocket",
"version": "2.0.13", "version": "2.0.15",
"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",
@ -24,17 +24,18 @@
"@apiglobal/typedrequest-interfaces": "^2.0.1", "@apiglobal/typedrequest-interfaces": "^2.0.1",
"@pushrocks/isohash": "^2.0.0", "@pushrocks/isohash": "^2.0.0",
"@pushrocks/isounique": "^1.0.5", "@pushrocks/isounique": "^1.0.5",
"@pushrocks/lik": "^6.0.0", "@pushrocks/lik": "^6.0.2",
"@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartenv": "^5.0.4", "@pushrocks/smartenv": "^5.0.5",
"@pushrocks/smartexpress": "^4.0.18", "@pushrocks/smartexpress": "^4.0.26",
"@pushrocks/smartjson": "^5.0.1", "@pushrocks/smartjson": "^5.0.1",
"@pushrocks/smartlog": "^3.0.1", "@pushrocks/smartlog": "^3.0.1",
"@pushrocks/smartpromise": "^3.1.7", "@pushrocks/smartpromise": "^3.1.7",
"@pushrocks/smartrx": "^3.0.0", "@pushrocks/smartrx": "^3.0.0",
"@pushrocks/smarttime": "^4.0.0", "@pushrocks/smarttime": "^4.0.1",
"socket.io": "^4.5.1", "engine.io": "6.3.1",
"socket.io-client": "^4.5.1" "socket.io": "4.5.4",
"socket.io-client": "4.5.4"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.63", "@gitzone/tsbuild": "^2.1.63",
@ -42,7 +43,7 @@
"@gitzone/tsrun": "^1.2.37", "@gitzone/tsrun": "^1.2.37",
"@gitzone/tstest": "^1.0.72", "@gitzone/tstest": "^1.0.72",
"@pushrocks/tapbundle": "^5.0.4", "@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.6.3" "@types/node": "^18.13.0"
}, },
"private": false, "private": false,
"files": [ "files": [

474
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -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({