websocket parser cleanup - and a fun story