added glue handling to parseFrame of WebSocketSocket