Fix websocket

Updated my branch to 0.3.5 and resubmitting this change (https://github.com/socketstream/socketstream/pull/360) to the websocket client side code.  My app doesn't work at all without these changes in some browsers.