renamed streamAttributes to streamStart
Improved  xmlInput and rawInput for WebSockets