better error logging
uggggly code
many a samsung phone lie about having websocket support