Group
Extension

Matches 2

Dancer2-Plugin-WebSocket ( Y/YA/YANICK/Dancer2-Plugin-WebSocket-0.3.1.tar.gz, YANICK, 2021; MetaCPAN )
Dancer2-Plugin-WebSocket/lib/Dancer2/Plugin/WebSocket.pm ( view source; MetaCPAN )
1,
    coerce => sub {
        my $serializer = shift or return undef;
        require JSON::MaybeXS;
        JSON::MaybeXS->new( ref $serializer ? %$serializer : () );
    },
);

has login => (
    i
sumed to be JSON
objects and will be automatically encoded/decoded using a L<JSON::MaybeXS>
serializer.  If the value of C<serializer> is a hash, it'll be passed as
arguments to the L<JSON::MaybeXS> c
structures to JSON on the client side, you can do something like

    var mySocket = new WebSocket(urlMySocket);
    mySocket.sendJSON = function(message) {
        return this.send(JSON.stringify(mes
Dancer2-Plugin-WebSocket ( Y/YA/YANICK/Dancer2-Plugin-WebSocket-0.3.1.tar.gz, YANICK, 2021; MetaCPAN )
Dancer2-Plugin-WebSocket/lib/Dancer2/Plugin/WebSocket/Connection.pm ( view source; MetaCPAN )
not
C<undef>, all messages that are not L<AnyEvent::WebSocket::Message> objects
are assumed to be JSON and will be deserialized
before being passed to the handlers, and will be serialized after being

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.