@Override
	public void processConnection() {
		

		try {
			Client.clientID = (Integer) input.readObject();
			Client.clientName = (String) input.readObject();
			((ClientGUI) userInterface).setTitle(Client.clientName);
			while(true) {
				int senderID = (Integer) input.readObject();
				String message = (String) input.readObject();				

				((ClientGUI) userInterface).displayMessage(message, senderID);
			}
		}
		catch(IOException ioException) {
			userInterface.displayErrorMessage("Server terminated connection");
			closeConnection();
		}
		catch(ClassNotFoundException classNotFoundException) {
			userInterface.displayErrorMessage("Unknown object type received");
		}
	}