Safari websocket disconnect. onbeforeunload = function() { websocket.