NAME
Dancer2::Plugin::WebSocket::Connection - Role tying Plack::App::WebSocket::Connection with the Dancer serializer
VERSION
version 0.0.1
DESCRIPTION
The connection objects used by Dancer2::Plugin::WebSocket are Plack::App::WebSocket::Connection objects augmented with this role.
This role does two itsy bitsy things: it adds a read-write serializer
attribute, which typically will be populated by the plugin, and adds an around
modifier for the send
method that, if a serializer is configured, will serialize any outgoing message that is not a AnyEvent::WebSocket::Message object.
AUTHOR
Yanick Champoux <yanick@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.