NAME
Plack::Middleware::SocketIO - Socket.IO middleware
SYNOPSIS
use Plack::Builder;
builder {
enable "SocketIO", handler => sub {
my $self = shift;
$self->on_message(
sub {
my $self = shift;
my ($message) = @_;
...
}
);
$self->send_message({buffer => []});
};
$app;
};
DESCRIPTION
Plack::Middleware::SocketIO is a server implmentation of SocketIO in Perl.
SocketIO
More information about SocketIO you can find on the website http://socket.io/, or on the GitHub https://github.com/LearnBoost/Socket.IO.
Transports
All the transports are supported.
WebSocket
Adobe(R) Flash(R) Socket
AJAX long polling
AJAX multipart streaming
Forever Iframe
JSONP Polling
TLS/SSL
For TLS/SSL a secure proxy is needed. stunnel
or App::TLSMe is recommended.
DEVELOPMENT
Repository
http://github.com/vti/plack-middleware-socketio
CREDITS
Socket.IO author(s) and contributors.
AUTHOR
Viacheslav Tykhanovskyi, vti@cpan.org
.
COPYRIGHT AND LICENSE
Copyright (C) 2011, 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.