HotReloadOptions
Signature
export interface HotReloadOptions extends WorkerHotReloadRequestOptionsProperties
1Methods
1Properties
resumeSession?: boolean;Experimental manager-only handoff for native workers with one shard and WorkerAdapter. The replacement still uses an Identify to start up. The original stream pauses while work drains and resumes from the last received sequence, subject to Discord accepting the session and replay. The replacement must finish its readiness handlers within `readyTimeout` before taking over. Outbound Gateway requests to the paused worker may time out. If activation is uncertain, rollback can replay events that the replacement already dispatched.
Methods
onProgress?(event: HotReloadProgress): void;Called as each worker moves through the reload.