Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
documentation tweaks
  • Loading branch information
kraih committed Feb 12, 2014
1 parent b2b0be5 commit 84a6c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1051,8 +1051,8 @@ WebSockets are not just for the server-side, you can use
L<Mojo::UserAgent/"websocket"> to open new connections, which are always
non-blocking. The handshake is a normal HTTP request with a few additional
headers, it can even contain cookies, followed by a C<101> response from the
server instructing our user agent to switch to the bi-directional WebSocket
protocol.
server notifying our user agent that the connection has been established and
it can start using the bi-directional WebSocket protocol.

use Mojo::UserAgent;
use Mojo::IOLoop;
Expand Down

0 comments on commit 84a6c86

Please sign in to comment.