Amon2::Web::WebSocket - WebSocket support for Amon2
This module is a helper class for WebSocket support for Amon2.
see Amon2::Plugin::Web::WebSocket for concrete usage.
$ws->on_receive_message(\&code);
$ws->on_eof(\&code);
$ws->on_error(\&code);
set a callback function on received event.
To install Amon2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Amon2
CPAN shell
perl -MCPAN -e shell install Amon2
For more information on module installation, please visit the detailed CPAN module installation guide.