Class Nexus\Mcp\Schema\Request\PingRequest

final
readonly
extends JsonRpcRequest<array{jsonrpc: '2.0', id: (int|non-empty-string), method: 'ping', params?: array{_meta?: array<string, mixed>}}>
implements ClientRequest, ServerRequest

A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.

Methods
Methods inherited from Nexus\Mcp\Schema\Message\JsonRpcRequest
toArray()
Methods inherited from Nexus\Mcp\Schema\Request\Request
jsonSerialize()
Methods inherited from Nexus\Mcp\Schema\Message\Message
validateJsonRpc()
Constants inherited from Nexus\Mcp\Schema\Message\JsonRpcMessage
JSON_RPC_VERSION
Properties inherited from Nexus\Mcp\Schema\Message\JsonRpcRequest
$jsonrpc, $id
Properties inherited from Nexus\Mcp\Schema\Request\Request
$method, $params