in reply to AnyEvent Question

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 ....