WIP: initial prototype
- Added client.close API - Added resurrect event - Improved resurrect ping strategy - Updated types
This commit is contained in:
2
lib/Connection.d.ts
vendored
2
lib/Connection.d.ts
vendored
@ -46,7 +46,7 @@ export default class Connection {
|
||||
_status: string;
|
||||
_agent: http.Agent;
|
||||
constructor(opts?: ConnectionOptions);
|
||||
request(params: any, callback: (err: Error | null, response: http.IncomingMessage | null) => void): http.ClientRequest;
|
||||
request(params: http.ClientRequestArgs, callback: (err: Error | null, response: http.IncomingMessage | null) => void): http.ClientRequest;
|
||||
close(): Connection;
|
||||
setRole(role: string, enabled: boolean): Connection;
|
||||
status: string;
|
||||
|
||||
Reference in New Issue
Block a user