MATSUNO★Tokuhiro > Amon2-3.77 > Amon2::Web::WebSocket

Download:
Amon2-3.77.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: Amon2-6.02

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.

syntax highlighting: