The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Hoppy - Flash XMLSocket Server.

SYNOPSIS

  use Hoppy;

  use MyService::Auth;
  use MyService::Chat;

  my $config = {
    alias => 'hoppy',
    port  => 12345,
    test  => 1,      # does not work POE::Filter::Line ( use it as telnet when debug phaze )
  };

  my $server = Hoppy->new(config => $config);

  $server->regist_service(
     auth => 'MyService::Auth',
     chat => 'MyService::Chat',
  );

  $server->start;

DESCRIPTION

Hoppy is a perl implementation of Flash XMLSocket Server.

METHODS

new(config => $config)

regist_service( $service_label => $service_class )

regist_hook( $hook_class => $args )

start

stop

unicast( { user_id => $user_id, messge => $message } )

multicast( { sender => $sender_session_id, room_id => $room_id, message => $message } )

broadcast( { sender => $sender_session_id, message => $message } )

dispatch($method, $params, $poe)

AUTHOR

Takeshi Miki <miki@cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO