Help for this page

Select Code to Download


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