Web::Hippie::Pipe - Persistent Connection Abstraction for Hippie
use Plack::Builder; use AnyMQ; builder { mount '/_hippie' => builder { enable "+Web::Hippie"; enable "+Web::Hippie::Pipe", bus => AnyMQ->new; sub { my $env = shift; my $bus = $env->{'hippie.bus'}; # AnyMQ bus my $listener = $env->{'hippie.listener'}; # AnyMQ::Queue my $client_id = $env->{'hippie.client_id'}; # client id # Your handler based on PATH_INFO: /new_listener, /error, /message } }; mount '/' => my $app; };
Web::Hippie::Pipe provides unified bidirectional communication over HTTP via websocket, mxhr, or long-poll, for your PSGI applications.
PSGI
Web::Hippie
Chia-liang Kao <clkao@clkao.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Web::Hippie, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::Hippie
CPAN shell
perl -MCPAN -e shell install Web::Hippie
For more information on module installation, please visit the detailed CPAN module installation guide.