Converted stream to websockets