Chia-liang Kao (高嘉良) > Web-Hippie > Web::Hippie::Pipe

Download:
Web-Hippie-0.40.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

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 ^

Web::Hippie

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.

SEE ALSO ^

syntax highlighting: