JsonRpc::WebSocketClient
Inherits JsonRpc::Stream / JsonRpc::Client / Reference / Object
Implements JSON-RPC over WebSocket.
Constructors
Creates a WebSocketClient from a HTTP::WebSocket.
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
inspect(io)
Sourcerun
Starts the HTTP::WebSocket 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.
socket
Source