read from server byte by byte