NAME

Amon2::Web::WebSocket - WebSocket support for Amon2

DESCRIPTION

This module is a helper class for WebSocket support for Amon2.

see Amon2::Plugin::Web::WebSocket for concrete usage.

METHODS

$ws->on_receive_message(\&code);
$ws->on_eof(\&code);
$ws->on_error(\&code);

set a callback function on received event.