Skip to content

Commit

Permalink
Typings: fix defn of recover clientoption
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonWoolf committed Nov 3, 2020
1 parent e3e952d commit 90b58ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ably.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ declare namespace Types {
* Can be used to explicitly recover a connection.
* See https://www.ably.io/documentation/realtime/connection#connection-state-recovery
*/
recover?: standardCallback | string;
recover?: string | ((lastConnectionDetails: {
recoveryKey: string;
disconnectedAt: number;
location: string;
clientId: string | null;
}, callback: (shouldRecover: boolean) => void) => void);

/**
* Use a non-secure connection connection. By default, a TLS connection is used to connect to Ably
Expand Down

0 comments on commit 90b58ca

Please sign in to comment.