Protocol::SocketIO::Message - Socket.IO message parsing and building
# Build messages $message = Protocol::SocketIO::Message->new( type => 'disconnect', endpoint => '/test' ); $message = Protocol::SocketIO::Message->new( type => 'ack', message_id => 4, args => ['A', 'B'] ); # Parse messages $message = Protocol::SocketIO::Message->new->parse('4:1::{"a":"b"}');
Protocol::SocketIO::Message parsers and builds Socket.IO messages.
new
parse
type
is_message
id
data
endpoint
to_bytes
to_string
To install Protocol::SocketIO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::SocketIO
CPAN shell
perl -MCPAN -e shell install Protocol::SocketIO
For more information on module installation, please visit the detailed CPAN module installation guide.