Help for this page
my $ua = Mojo::UserAgent->new; my $conn = $ua->websocket("ws://localhost:8080/" => sub { ... }); }); Mojo::IOLoop->start unless Mojo::IOLoop->is_running;