Instead of polling for stderr and stdout we should just create a websocket connection.
Instead of polling for stderr and stdout we should just create a websocket connection.