class

JSON::RPC::Transport

Inherits Reference < Object

A transport carries a serialized JSON-RPC request to the peer and returns the serialized response. Implement this to speak JSON-RPC over something other than HTTP (a Unix socket, a message queue, an in-process stub for testing, …).

Instance methods

call(body : String) : String

Sends body (a serialized JSON-RPC request) and returns the raw response body. Must raise {TransportError} on any transport-level failure.

Source