ProgressParams

@Serializable
data class ProgressParams(val progressToken: JsonPrimitive, val progress: Double, val total: Double? = null, val _meta: Map<String, JsonElement>? = null) : NotificationParams

An out-of-band notification used to inform the receiver of a progress update for a long-running request.

Constructors

Link copied to clipboard
constructor(progressToken: JsonPrimitive, progress: Double, total: Double? = null, _meta: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
open override val _meta: Map<String, JsonElement>?
Link copied to clipboard

The current progress made (increases each time). Using Double to represent numeric progress.

Link copied to clipboard
val progressToken: JsonPrimitive

The progress token from the initial request. Token is string|number.

Link copied to clipboard

The total amount of progress required, if known.