websocket frame header handling