plicease/AnyEvent-WebSocket-Client — pull request #12 by debug-ito (2013-10-16 12:40:15+00:00)
Title: bug fix: client connection could not receive the message sent by the server right after handshake response

Because the on_read() callback was executed before registering any each_message/next_message callbacks,
the message sent by the server right after handshake response was discarded.

Now that it delays setting on_read() callback by AnyEvent->idle, each_message/next_message callbacks can receive the messages.