redux-ws-middleware
Version:
This package makes web socket management much easier with redux
15 lines (14 loc) • 480 B
TypeScript
import { BaseService } from '../BaseService';
export declare class ReconnectService extends BaseService {
private readonly interval;
private readonly callback;
private reconnections;
private timeout;
constructor(callback: () => void, interval?: number | number[], debug?: boolean);
startJob: () => void;
removeJob: () => void;
private getInterval;
private setReconnections;
private incrementReconnections;
private resetReconnections;
}