Protocol::SocketIO::Handshake - Socket.IO handshake construction
my $handshake = Protocol::SocketIO::Handshake->new( session_id => 1234567890, heartbeat_timeout => 10, close_timeout => 15, transports => [qw/websocket xhr-polling/] ); $handshake->to_bytes; # '1234567890:10:15:websocket,xhr-polling';
new
to_bytes
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.