diff --git a/README.pod b/README.pod index db34bf8..cdc2d02 100644 --- a/README.pod +++ b/README.pod @@ -6,6 +6,8 @@ C - serve WebSocket clients using Cnew( @@ -34,9 +36,9 @@ The following named parameters may be passed to C: =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 diff --git a/lib/Plack/App/Net/Async/WebSocket.pm b/lib/Plack/App/Net/Async/WebSocket.pm index 2bd8ebb..7343623 100644 --- a/lib/Plack/App/Net/Async/WebSocket.pm +++ b/lib/Plack/App/Net/Async/WebSocket.pm @@ -86,6 +86,8 @@ C - serve WebSocket clients using Cnew(