Description: Makes a remote call to a process returning the result to the client in JSON format. Before, After and error actions can be specified using call backs. It takes the following arguments
$self
$request_storage->{url}
method
req_storage
$req_storage->{args}
args
$req_storage->{stash_params}
call_params
Mojolicious::Controller
$req_storage
rpc_response_callback
$c
$response->{error}
$req_storage->{rpc_response_cb}
Returns undef.
Mojo::WebSocketProxy::Backend
A subclass of Mojo::WebSocketProxy::Backend which dispatched RPC requests over JSON-RPC over HTTP/HTTPS.
$url = $backend->url
Returns the configured default dispatch URL.
Implements the "call_rpc" in Mojo::WebSocketProxy::Backend interface.
Mojolicious::Plugin::WebSocketProxy, Mojo::WebSocketProxy Mojo::WebSocketProxy::Dispatcher, Mojo::WebSocketProxy::Config Mojo::WebSocketProxy::Parser
To install Mojo::WebSocketProxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo::WebSocketProxy
CPAN shell
perl -MCPAN -e shell install Mojo::WebSocketProxy
For more information on module installation, please visit the detailed CPAN module installation guide.