vti/pocketio — pull request #19 by michael-fig (2012-05-30 17:23:31+00:00)
Title: socket.io-like rooms

I've implemented rooms in a socket.io style. From the PocketIO.pm docs:

=head2 Rooms

A room is a named group of connections for more fine-grained
broadcasts. You can subscribe or unsubscribe a socket to/from a room:

sub {
my $self = shift;
$self->join('a room');
$self->sockets->in('a room')->emit('message', data);
$self->broadcast->to('a room')->emit("other message");
$self->leave('a room');
}

PocketIO::Pool understands rooms natively, but some work will need to be done to PocketIO::Pool::Redis in order to implement rooms for that pool type.

I am still working on a pool implementation that can handle split read/write ends of a PocketIO::Connection.