The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Hoppy - Flash XMLSocket Server.

SYNOPSIS

  use Hoppy;

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

  my $config = {
    alias => 'hoppy',
    port  => 12345,
  };

  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 )

start

stop

unicast( $user_id, $message )

multicast( $sender_session_id, $room_id, $message )

broadcast( $sender_session_id, $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