NAME
Web::Hippie::Pipe - Persistent Connection Abstraction for Hippie
SYNOPSIS
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
;
};
DESCRIPTION
Web::Hippie::Pipe provides unified bidirectional communication over HTTP via websocket, mxhr, or long-poll, for your PSGI
applications.
SEE ALSO
AUTHOR
Chia-liang Kao <clkao@clkao.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.