Plack-Middleware-WebSocket

所属分类:中间件编程
开发工具:Perl
文件大小:8KB
下载次数:0
上传日期:2016-03-04 04:35:56
上 传 者sh-1993
说明:  WebSocket握手帮助器中间件
(WebSocket handshake helper middleware)

文件列表:
.shipit (124, 2016-03-04)
Changes (126, 2016-03-04)
MANIFEST.SKIP (182, 2016-03-04)
Makefile.PL (356, 2016-03-04)
eg (0, 2016-03-04)
eg\echo (0, 2016-03-04)
eg\echo\app.psgi (2921, 2016-03-04)
lib (0, 2016-03-04)
lib\Plack (0, 2016-03-04)
lib\Plack\Middleware (0, 2016-03-04)
lib\Plack\Middleware\WebSocket.pm (3745, 2016-03-04)
t (0, 2016-03-04)
t\00_compile.t (88, 2016-03-04)
xt (0, 2016-03-04)
xt\01_podspell.t (269, 2016-03-04)
xt\02_perlcritic.t (219, 2016-03-04)
xt\03_pod.t (129, 2016-03-04)
xt\perlcriticrc (51, 2016-03-04)

=head1 OBSOLETE - Not up to date with the latest protocol Maybe you're searching for: L =head1 NAME Plack::Middleware::WebSocket - Support WebSocket implementation =head1 SYNOPSIS builder { enable 'WebSocket'; sub { my $env = shift; ... if (my $fh = $env->{'websocket.impl'}->handshake) { # interact via $fh ... } else { $res->code($env->{'websocket.impl'}->error_code); } }; }; =head1 DESCRIPTION Plack::Middleware::WebSocket provides WebSocket implementation through $env->{'websocket.impl'}. Currently implements draft-ietf-hybi-thewebsocketprotocol-00 . =head1 METHODS =over 4 =item my $fh = $env->{'websocket.impl'}->handshake; Starts WebSocket handshake and returns filehandle on successful handshake. If failed, $env->{'websocket.impl'}->error_code is set to an HTTP code. =back =head1 AUTHOR motemen Emotemen@gmail.comE =head1 SEE ALSO =head1 LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

近期下载者

相关文件


收藏者