Skip to content

Commit cc8486e

Browse files
committed
[Feat] Wait for connections to establish before callback and reattempt
* 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 client config (connectFailRetryCount, default 1). * Reattempt 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 5d48f94 commit cc8486e

2 files changed

Lines changed: 228 additions & 76 deletions

File tree

0 commit comments

Comments
 (0)