SockJS - SockJS Perl implementation
use Plack::Builder; use SockJS; builder { mount '/echo' => SockJS->new( handler => sub { my ($session) = @_; $session->on( 'data' => sub { my $session = shift; $session->write(@_); } ); }; ); };
SockJS is a Perl implementation of http://sockjs.org.
When using Twiggy there is no chunked support, thus try my fork http://github.com/vti/Twiggy.
See example/ directory.
example/
http://github.com/vti/sockjs-perl
Viacheslav Tykhanovskyi, vti@cpan.org.
vti@cpan.org
Copyright (C) 2013, Viacheslav Tykhanovskyi
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
To install SockJS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SockJS
CPAN shell
perl -MCPAN -e shell install SockJS
For more information on module installation, please visit the detailed CPAN module installation guide.