Skip to content

Commit

Permalink
WebSocket connections are always non-blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 10, 2016
1 parent 7169ceb commit 352f98d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -385,7 +385,7 @@ Mojo::UserAgent - Non-blocking I/O HTTP and WebSocket user agent
});
Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
# Non-blocking concurrent requests (synchronized with a delay)
# Concurrent non-blocking requests (synchronized with a delay)
Mojo::IOLoop->delay(
sub {
my $delay = shift;
Expand All @@ -399,7 +399,7 @@ Mojo::UserAgent - Non-blocking I/O HTTP and WebSocket user agent
}
)->wait;
# Non-blocking WebSocket connection sending and receiving JSON messages
# WebSocket connection sending and receiving JSON messages
$ua->websocket('ws://example.com/echo.json' => sub {
my ($ua, $tx) = @_;
say 'WebSocket handshake failed!' and return unless $tx->is_websocket;
Expand Down

0 comments on commit 352f98d

Please sign in to comment.