There's more than one way to do things | |
PerlMonks |
Re: AnyEvent Questionby Anonymous Monk |
on Dec 24, 2015 at 23:05 UTC ( [id://1151143]=note: print w/replies, xml ) | Need Help?? |
I come to you tonight because I am encountering quit a hurdle in my understanding. I would start with this example Re^3: real-time output from Mojolicious WebSockets? Use it to understand what is going on Notice how there are no infinite while loops, you register your callbacks/handlers, start a connection, and then it just runs on its own, you never call recv, a message gets sent, a message gets received, its just runs and runs and runs ....
In Section
Seekers of Perl Wisdom
|
|