Well, i can get rid of the whole thing once safari updates its WebSocket implementation