
PocketIO::Socket - Socket class

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
}
);
...
};

newCreate new instance.
closeClose connection.
emitEmit event.
getGet attribute.
setSet atribute.
idGet session id.
session_idSame as id.
onRegister event.
sendSend message.
socketsGet sockets object.
broadcastGet broadcasting object.
joinJoin the specified room.
leaveLeave the specified room.