ServerPushChannel.ping

Initiate a ping toward the client on the session's GET SSE stream and block until it acknowledges with the spec-mandated empty result (basic/utilities/ping). This is the server-side counterpart to the client's ping(): it lets a server perform the SHOULD-periodic connection-health check the spec describes for either party. Throws on a client error, a timeout (treat as a stale connection), or when no GET listener is connected for the session. The ping request carries no params, exactly as the spec requires. sessionToken scopes the probe to one session's GET stream (empty == the stateless / shared path); see requestOnSession.

class ServerPushChannel
@safe
void
ping
(
Duration timeout = 60.seconds
,
string sessionToken = ""
)