Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
a8aeeaaa6c | |||
f9f6975b87 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartsocket",
|
"name": "@pushrocks/smartsocket",
|
||||||
"version": "1.2.11",
|
"version": "1.2.12",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smartsocket",
|
"name": "@pushrocks/smartsocket",
|
||||||
"version": "1.2.11",
|
"version": "1.2.12",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartsocket",
|
"name": "@pushrocks/smartsocket",
|
||||||
"version": "1.2.11",
|
"version": "1.2.12",
|
||||||
"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",
|
||||||
|
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
|
* try a reconnection
|
||||||
*/
|
*/
|
||||||
public async tryDebouncedReconnect() {
|
public async tryDebouncedReconnect() {
|
||||||
await plugins.smartdelay.delayForRandom(10000, 60000);
|
await plugins.smartdelay.delayForRandom(10000, 50000);
|
||||||
await this.connect();
|
await this.connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,10 @@ import { logger } from './smartsocket.logging';
|
|||||||
export class SocketServer {
|
export class SocketServer {
|
||||||
private smartsocket: Smartsocket;
|
private smartsocket: Smartsocket;
|
||||||
private httpServer: pluginsTyped.http.Server | pluginsTyped.https.Server;
|
private httpServer: pluginsTyped.http.Server | pluginsTyped.https.Server;
|
||||||
// wether httpServer is standalone
|
|
||||||
|
/**
|
||||||
|
* wether httpServer is standalone
|
||||||
|
*/
|
||||||
private standaloneServer = false;
|
private standaloneServer = false;
|
||||||
|
|
||||||
constructor(smartSocketInstance: Smartsocket) {
|
constructor(smartSocketInstance: Smartsocket) {
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
import * as plugins from './smartsocket.plugins';
|
|
||||||
|
|
||||||
export class SocketStats {}
|
|
Reference in New Issue
Block a user