Support for streaming via api and websockets.