chat in stream IO