From f9f6975b87e2542ad64f03dfff9e73dd3e0f05cf Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 19 Jan 2022 08:05:06 +0100 Subject: [PATCH] fix(core): update --- test/test.reconnect.ts | 5 +++++ test/{test.ts => test.tagging.ts} | 0 ts/smartsocket.classes.smartsocketclient.ts | 2 +- ts/smartsocket.classes.socketserver.ts | 5 ++++- ts/smartsocket.classes.socketstats.ts | 3 --- 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 test/test.reconnect.ts rename test/{test.ts => test.tagging.ts} (100%) delete mode 100644 ts/smartsocket.classes.socketstats.ts diff --git a/test/test.reconnect.ts b/test/test.reconnect.ts new file mode 100644 index 0000000..e0ae3ba --- /dev/null +++ b/test/test.reconnect.ts @@ -0,0 +1,5 @@ +import { tap, expect } from '@pushrocks/tapbundle'; + +tap.test('should run a test', async () => {}); + +tap.start(); diff --git a/test/test.ts b/test/test.tagging.ts similarity index 100% rename from test/test.ts rename to test/test.tagging.ts diff --git a/ts/smartsocket.classes.smartsocketclient.ts b/ts/smartsocket.classes.smartsocketclient.ts index 70a96ae..6055076 100644 --- a/ts/smartsocket.classes.smartsocketclient.ts +++ b/ts/smartsocket.classes.smartsocketclient.ts @@ -229,7 +229,7 @@ export class SmartsocketClient { * try a reconnection */ public async tryDebouncedReconnect() { - await plugins.smartdelay.delayForRandom(10000, 60000); + await plugins.smartdelay.delayForRandom(10000, 50000); await this.connect(); } diff --git a/ts/smartsocket.classes.socketserver.ts b/ts/smartsocket.classes.socketserver.ts index 34ef94a..d8d50ca 100644 --- a/ts/smartsocket.classes.socketserver.ts +++ b/ts/smartsocket.classes.socketserver.ts @@ -12,7 +12,10 @@ import { logger } from './smartsocket.logging'; export class SocketServer { private smartsocket: Smartsocket; private httpServer: pluginsTyped.http.Server | pluginsTyped.https.Server; - // wether httpServer is standalone + + /** + * wether httpServer is standalone + */ private standaloneServer = false; constructor(smartSocketInstance: Smartsocket) { diff --git a/ts/smartsocket.classes.socketstats.ts b/ts/smartsocket.classes.socketstats.ts deleted file mode 100644 index 8b50601..0000000 --- a/ts/smartsocket.classes.socketstats.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as plugins from './smartsocket.plugins'; - -export class SocketStats {}