TransportSendOptions

open class TransportSendOptions(val relatedRequestId: RequestId? = null, val resumptionToken: String? = null, val onResumptionToken: (String) -> Unit? = null)(source)

Options for sending a JSON-RPC message through transport.

Inheritors

Constructors

Link copied to clipboard
constructor(relatedRequestId: RequestId? = null, resumptionToken: String? = null, onResumptionToken: (String) -> Unit? = null)

Properties

Link copied to clipboard

a callback that is invoked when the resumption token changes, if supported by the transport. This allows clients to persist the latest token for potential reconnection.

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard
operator fun component1(): RequestId?
Link copied to clipboard
operator fun component2(): String?
Link copied to clipboard
operator fun component3(): (String) -> Unit?
Link copied to clipboard
open fun copy(relatedRequestId: RequestId? = this.relatedRequestId, resumptionToken: String? = this.resumptionToken, onResumptionToken: (String) -> Unit? = this.onResumptionToken): TransportSendOptions
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String