Preview environment

interface IContextFetchingStrategy

export interface IContextFetchingStrategy

Strategies responsible solely for making manager information accessible

readonly
options : FetchingStrategyOptions

retrieveSessionInfo(
shardId: number
) : Awaitable<SessionInfo | null>

updateSessionInfo(
shardId: number
sessionInfo: SessionInfo | null
) : Awaitable<void>

waitForIdentify(
shardId: number
signal: AbortSignal
) : Promise<void>

Resolves once the given shard should be allowed to identify This should correctly handle the signal and reject with an abort error if the operation is aborted. Other errors will cause the shard to reconnect.