UNPKG

rwsdk

Version:

Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime

9 lines (8 loc) 361 B
/** * Schedules a reconnect for the given endpoint using exponential backoff. * * When the timer fires, the old connection (if any) is closed and evicted, * and a fresh connection is created. The new connection's `open` handler will * re-subscribe to all active keys and re-fetch their state. */ export declare function reconnect(endpoint: string): void;