Skip to content

Commit

Permalink
use the result method in the README example too
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 29, 2017
1 parent 66a0020 commit b14603a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -79,7 +79,7 @@ get '/' => {template => 'index'};
# WebSocket service used by the template to extract the title from a website
websocket '/title' => sub ($c) {
$c->on(message => sub ($c, $msg) {
my $title = $c->ua->get($msg)->res->dom->at('title')->text;
my $title = $c->ua->get($msg)->result->dom->at('title')->text;
$c->send($title);
});
};
Expand Down

0 comments on commit b14603a

Please sign in to comment.