You need to work out how to keep reading characters sent from the server until it stops sending them.
--Phil.