Compare commits

...

4 Commits

Author SHA1 Message Date
4fc09af779 2.0.17 2023-03-29 16:07:54 +02:00
f73d973383 fix(core): update 2023-03-29 16:07:54 +02:00
d87a942ab3 2.0.16 2023-03-20 18:51:02 +01:00
60e8657467 fix(core): update 2023-03-20 18:51:02 +01:00
5 changed files with 809 additions and 742 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartsocket",
"version": "2.0.15",
"version": "2.0.17",
"description": "easy and secure websocket communication",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
@ -27,7 +27,7 @@
"@pushrocks/lik": "^6.0.2",
"@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartenv": "^5.0.5",
"@pushrocks/smartexpress": "^4.0.26",
"@pushrocks/smartexpress": "^4.0.34",
"@pushrocks/smartjson": "^5.0.1",
"@pushrocks/smartlog": "^3.0.1",
"@pushrocks/smartpromise": "^3.1.7",
@ -43,7 +43,7 @@
"@gitzone/tsrun": "^1.2.37",
"@gitzone/tstest": "^1.0.72",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.13.0"
"@types/node": "^18.15.11"
},
"private": false,
"files": [

1537
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -30,6 +30,8 @@ export class Smartsocket {
public socketFunctions = new plugins.lik.ObjectMap<SocketFunction<any>>();
public socketRequests = new plugins.lik.ObjectMap<SocketRequest<any>>();
public eventSubject = plugins.smartrx.rxjs.Subject;
private socketServer = new SocketServer(this);
constructor(optionsArg: ISmartsocketConstructorOptions) {
@ -37,7 +39,6 @@ export class Smartsocket {
this.alias = plugins.isounique.uni(this.options.alias);
}
// tslint:disable-next-line:member-ordering
public async setExternalServer(serverType: 'smartexpress', serverArg: any) {
await this.socketServer.setExternalServer(serverType, serverArg);
}

View File

@ -110,7 +110,8 @@ export class SmartsocketClient {
smartsocketHost: this,
socket: await socketIoClient
.connect(socketUrl, {
multiplex: false,
multiplex: true,
rememberUpgrade: true,
autoConnect: false,
reconnectionAttempts: 0,
rejectUnauthorized: socketUrl.startsWith('https://localhost') ? false : true,