With the Comet API, how are you supposed to know when the input has ended when you have chunked transfer encoding?Thanks