NAME

POEx::ProxySession::Types - Types for use within the ProxySession environment

VERSION

version 1.102760

DESCRIPTION

POEx::ProxySession::Types provides types for use within the ProxySession environment that are self validating.

TYPES

ProxyMessage

ProxyMessage is a Dict with the following structure:

    type => Str,
    id => Int,
    payload => Optional[Str],
    to => Optional[Str],
    success => Optional[Bool],

type can be any of the following: deliver, result, subscribe, publish, listing, and rescind. Each type has some light validation. Deliver requires 'to' to be set. Result requires 'success' to be set. Subscribe requires 'to'. Publish and rescind both require 'payload' to be set.

This type does not validate the contents of the payload.

AUTHOR

Nicholas Perez <nperez@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Nicholas Perez.

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