avoid race condition with client-connected message
avoid race condition with client-connected message

previously protocol 7/8/13 handler sent :connect message to resource
handler before version was set inclient object, so data sent by
connect handler could be lost

deadtrickster/clws,deadtrickster/clws