Mojo::WebSocketProxy::Dispatcher
Using this module you can forward websocket JSON-RPC 2.0 requests to RPC server. See Mojo::WebSocketProxy for details on how to use hooks and parameters.
app, continue, cookie, every_cookie, every_param, every_signed_cookie, finish, flash, helpers, match, on, param, redirect_to, render, render_later, render_maybe, render_to_string, rendered, req, res, respond_to, session, signed_cookie, stash, tx, url_for, validation, write, write_chunk
attr, import, new, tap
Run while opening new wss connection. Run hook when connection is opened. Set finish connection callback.
Handle message - parse and dispatch request messages. Dispatching action and forward to RPC server. Note that all incoming JSON messages are first normalised using NFC.
Run hooks.
Dispatch request using message json key.
Forward call to RPC server using global and action hooks. Don't forward call to RPC if any before_forward hook returns response. Or if there is instead_of_forward action.
Generates and returns a hash for error reporting
Mojolicious::Plugin::WebSocketProxy, Mojo::WebSocketProxy, Mojo::WebSocketProxy::Backend, 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.