Fixed websockets for long messages
XML for output messages