JsonRpc::StreamClient
Inherits JsonRpc::Stream / JsonRpc::Client / Reference / Object
Implements JSON-RPC over a persistant data stream.
Constants
Constructors
Creates a streaming client from stream. If run is true, the client will
start accepting messages right away. If you choose to pass false, then
make sure to call #run some time afterwards manually, even if you're
only calling remote methods.
Instance methods
Maximum request size limit. If a client exceeds this, it will be
disconnected. Defaults to SIZE_LIMIT
Maximum request size limit. If a client exceeds this, it will be
disconnected. Defaults to SIZE_LIMIT
Starts the read-loop in a background fiber. Make sure to only call this
method once, and only if you passed false for run to the constructor.
If you did not do anything fancy, don't call this method.