hacked together basic stream that outputs a 0 or 1 randomly from the server and the client pipes that to a react component's state