document Socket.upgrade event, and fix its timing just after setTranspor...

...t like on server side