public readLines() as ArrayList<String> throws IOException:
Reads all remaining lines until the socket stream closes.