notification

abstract suspend fun notification(notification: ServerNotification, relatedRequestId: RequestId? = null)(source)

Sends a server-side notification to the client.

Parameters

notification

The notification to be sent to the client. This typically represents a specific event or update from the server.

relatedRequestId

An optional identifier linking this notification to a prior request. Useful for correlating notifications with originating requests.