Atmosphere/atmosphere — pull request #52 by GerjanOnline (2011-11-02 15:40:47+00:00)
Title: In the websocket.onopen function: invoke the callback at the the very end

In the websocket.onopen function: invoke the callback at the the very end, otherwise there is a possibility that 'atmosphere variables' are changed before the function is completely executed.
For example, when you do a atmosphere.response.push IN THAT callback (with state == 'opening' and method = 'post') it might happen that the data is send twice.