ReconnectOptions
Defined in: react/src/client.ts:280
How the client reattaches when a stream ends or fails while a run is going.
Properties
Section titled “Properties”attempts?
Section titled “attempts?”optional attempts?: number;Defined in: react/src/client.ts:285
Tries in a row that bring nothing new before the connection counts as lost. An event that changes the view starts the count again. A connection that opens and says nothing does not, or a host that accepts and closes would be retried forever. Default 5, and 0 turns reattaching off.
baseDelayMs?
Section titled “baseDelayMs?”optional baseDelayMs?: number;Defined in: react/src/client.ts:287
Wait before the first try, doubled for each one after it. Default 1,000.
maxDelayMs?
Section titled “maxDelayMs?”optional maxDelayMs?: number;Defined in: react/src/client.ts:289
Longest wait between tries. Default 15,000.