The render function returns a duplex stream