NAME
SocketIO::Emitter - A Perl implementation of socket.io-emitter.
SYNOPSIS
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!!!!');
DESCRIPTION
A Perl implementation of socket.io-emitter.
This project uses redis. Make sure your environment has redis.
LICENSE
Copyright (C) Tsuyoshi Torii
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Tsuyoshi Torii <toritori0318@gmail.com>