reconnect() function
'reconnect' event occurs each time, when the connection is successfully established after connection retry. It is followed by a corresponding 'connect' event, but after all possible channel locks finished their attempts to be re-acquired.
Signature:
export declare function reconnect(retries: number): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
retries |
number |
number of retries made before re-connect succeeded |
Returns:
void
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.