fix(core): update
This commit is contained in:
parent
b9a6f1d5b0
commit
f9f6975b87
5
test/test.reconnect.ts
Normal file
5
test/test.reconnect.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { tap, expect } from '@pushrocks/tapbundle';
|
||||
|
||||
tap.test('should run a test', async () => {});
|
||||
|
||||
tap.start();
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -1,3 +0,0 @@
|
||||
import * as plugins from './smartsocket.plugins';
|
||||
|
||||
export class SocketStats {}
|
Loading…
Reference in New Issue
Block a user