Init ack moved after handler init callback to be sure no one can send message before init finishes.

Commit comment describes fixed problem, for example you need to authorize before you can use websocket, so you can send message from init and be sure no other message will be sent before.