RequestOptions

constructor(relatedRequestId: RequestId? = null, resumptionToken: String? = null, onResumptionToken: (String) -> Unit? = null, onProgress: ProgressCallback? = null, timeout: Duration = DEFAULT_REQUEST_TIMEOUT)(source)

Parameters

relatedRequestId

if present, used to indicate to the transport which incoming request to associate this outgoing message with.

resumptionToken

the resumption token used to continue long-running requests that were interrupted. Allows clients to reconnect and continue from where they left off, if supported by the transport.

onResumptionToken

callback invoked when the resumption token changes, if supported by the transport. Allows clients to persist the latest token for potential reconnection.