Вячеслав Тихановский > Protocol-SocketIO-0.04 > Protocol::SocketIO::Handshake

Download:
Protocol-SocketIO-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Protocol-SocketIO-0.06

NAME ^

Protocol::SocketIO::Handshake - Socket.IO handshake construction

SYNOPSIS ^

    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';

METHODS ^

new

to_bytes

syntax highlighting: