Skip to content

Commit

Permalink
more tutorial tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 8, 2013
1 parent fd7178f commit 4551cdc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -860,7 +860,10 @@ L<Mojo::JSON> and L<Mojo::DOM> this can be a very powerful tool.
=head2 WebSockets
WebSocket applications have never been this easy before.
WebSocket applications have never been this simple before. Just receive
messages by subscribing to the event L<Mojo::Transaction::WebSocket/"message">
with L<Mojolicious::Controller/"on"> and return them with
L<Mojolicious::Controller/"send">.
use Mojolicious::Lite;
Expand Down Expand Up @@ -894,10 +897,6 @@ WebSocket applications have never been this easy before.
</head>
</html>
The event L<Mojo::Transaction::WebSocket/"message">, which you can subscribe
to with L<Mojolicious::Controller/"on">, will be emitted for every new
WebSocket message that is received.
=head2 Testing
Testing your application is as easy as creating a C<t> directory and filling
Expand Down

0 comments on commit 4551cdc

Please sign in to comment.