Skip to content

Commit

Permalink
synopsis rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
mindc committed May 13, 2016
1 parent 4748d3a commit 06e96be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ C<Plack::App::Net::Async::WebSocket> - serve WebSocket clients using C<IO::Async

=head1 SYNOPSIS

# app.psgi

use Plack::App::Net::Async::WebSocket;

my $app = Plack::App::Net::Async::WebSocket->new(
Expand Down Expand Up @@ -34,9 +36,9 @@ The following named parameters may be passed to C<new>:

=over 8

=item on_client => CODE
=item on_handshake => CODE

A callback that is invoke whenever a new connection has been handshaked.
A CODE reference for when a new connection has been handshaked.
This parameter is optional

=item on_frame => CODE
Expand Down
2 changes: 2 additions & 0 deletions lib/Plack/App/Net/Async/WebSocket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ C<Plack::App::Net::Async::WebSocket> - serve WebSocket clients using C<IO::Async
=head1 SYNOPSIS
# app.psgi
use Plack::App::Net::Async::WebSocket;
my $app = Plack::App::Net::Async::WebSocket->new(
Expand Down

0 comments on commit 06e96be

Please sign in to comment.