ProgressNotificationParams

data class ProgressNotificationParams(val progressToken: ProgressToken, val progress: Double, val total: Double? = null, val message: String? = null, val meta: JsonObject? = null) : NotificationParams(source)

Parameters for a notifications/progress notification.

Constructors

Link copied to clipboard
constructor(progressToken: ProgressToken, progress: Double, total: Double? = null, message: String? = null, meta: JsonObject? = null)

Properties

Link copied to clipboard
open val _meta: JsonObject
Link copied to clipboard

An optional message describing the current progress.

Link copied to clipboard
@SerialName(value = "_meta")
open override val meta: JsonObject?

Optional metadata for this notification.

Link copied to clipboard

The progress thus far. This should increase every time progress is made, even if the total is unknown.

Link copied to clipboard

The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.

Link copied to clipboard

Total number of items to process (or total progress required), if known.