Skip to content

Commit

Permalink
added example for accepting WebSocket handshake without subscribing t…
Browse files Browse the repository at this point in the history
…o an event
  • Loading branch information
kraih committed Feb 10, 2014
1 parent 7255bf3 commit f9e076c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.79 2014-02-09
4.79 2014-02-10

4.78 2014-02-08
- Deprecated Mojo::Util::get_line.
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -770,6 +770,9 @@ using a C<200> response code.
$self->res->body('Hello World!');
$self->rendered(200);
# Accept WebSocket handshake without subscribing to an event
$self->rendered(101);
=head2 req
my $req = $c->req;
Expand Down

0 comments on commit f9e076c

Please sign in to comment.