Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Mixing asynchronous data feed with synchronous program flow control

by haukex (Archbishop)
on Jan 02, 2020 at 08:29 UTC ( [id://11110864]=note: print w/replies, xml ) Need Help??

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;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11110864]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-20 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found