@Override
	public void run() {
		try {
			InputStream input = socket.getInputStream();
			BufferedReader reader = new BufferedReader(new InputStreamReader(input));
			String line;
			while ((line = reader.readLine()) != null) {
				window.setChatHistoryText(line);
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}