WIP: initial prototype

- Added client.close API
- Added resurrect event
- Improved resurrect ping strategy
- Updated types
This commit is contained in:
delvedor
2018-12-10 20:12:25 +01:00
parent 4c8df2d4c0
commit a9e621721e
6 changed files with 39 additions and 10 deletions

View File

@ -27,6 +27,12 @@ export interface getConnectionOptions {
selector?: nodeSelectorFn;
}
export interface ResurrectMeta {
strategy: string;
isAlive: boolean;
connection: Connection;
}
export default class ConnectionPool {
static resurrectStrategies: {
none: number;