Nephia::Plugin::SocketIO - Nephia plugin socketio support
use Nephia plugins => [ 'SocketIO', ... ]; app { socketio 'your_event' => sub { my $socket = shift; ### PocketIO::Socket object $socket->emit('some_event' => 'some_data'); }; };
Nephia::Plugin::SocketIO is a plugin for Nephia. It provides SocketIO messaging feature.
my $coderef = sub { my $socket = shift; # PocketIO::Socket object ... }; socketio $str => $coderef;
Specifier DSL for SocketIO messaging.
$str is event name, and $coderef is event logic.
Copyright (C) ytnobody.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ytnobody <ytnobody@gmail.com>
To install Nephia::Plugin::SocketIO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nephia::Plugin::SocketIO
CPAN shell
perl -MCPAN -e shell install Nephia::Plugin::SocketIO
For more information on module installation, please visit the detailed CPAN module installation guide.