Skip to content

Commit 7319545

Browse files
committed
[Feat] Wait for connections to establish before callback, retry on fail
* Delay onConnect until connection is likely established using a timer (7x conn interval), with early completion on peer activity. * Suppress onDisconnect for 0x3e and route terminal 0x3e failures to onConnectFail. * Add configurable 0x3e reconnect attempts via `setConnectRetries` or client config (default 2). * Retry logic suppresses callbacks while retrying; callbacks fire only on final outcome. * Refactor connect-start path into a shared helper used by initial connect and retries.
1 parent fa001a9 commit 7319545

2 files changed

Lines changed: 250 additions & 78 deletions

File tree

0 commit comments

Comments
 (0)