RFC6455 compliant parser for websocket messages