++ed by:
GETTY GFUJI HIDEAKIO PJFL PLU

7 PAUSE user(s)
4 non-PAUSE user(s).

Вячеслав Тихановский

NAME

PocketIO::Socket - Socket class

DESCRIPTION

Instance of PocketIO::Socket is actually the object that you get in a handler.

    builder {
        mount '/socket.io' => PocketIO->new(
            handler => sub {
                my $socket = shift;

                # $socket is PocketIO::Socket instance
            }
        );

        ...
    };

METHODS

new

Create new instance.

close

Close connection.

emit

Emit event.

get

Get attribute.

set

Set atribute.

id

Get session id.

session_id

Same as id.

on

Register event.

send

Send message.

sockets

Get sockets object.

broadcast

Get broadcasting object.

join

Join the specified room.

leave

Leave the specified room.




Hosting generously
sponsored by Bytemark