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 {}