SocketIO::Emitter - A Perl implementation of socket.io-emitter.
use strict; use warnings; use SocketIO::Emitter; my $em = SocketIO::Emitter->new( # key => 'another-key', # redis => Redis->new(server => 'localhost:6380'), ); # emit $em->emit('event', 'broadcast blah blah blah'); # namespace emit $em->of('/nsp')->emit('event', 'nsp broadcast blah blah blah'); # namespace room broadcast $em->of('/nsp')->room('roomId')->broadcast->emit('event', 'yahooooooo!!!!');
A Perl implementation of socket.io-emitter.
This project uses redis. Make sure your environment has redis.
Copyright (C) Tsuyoshi Torii
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Tsuyoshi Torii <toritori0318@gmail.com>
To install SocketIO::Emitter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SocketIO::Emitter
CPAN shell
perl -MCPAN -e shell install SocketIO::Emitter
For more information on module installation, please visit the detailed CPAN module installation guide.