public void run(){
/** Keep listening for messages from client associated with this thread */
while(keepRunning && clientSocket.isConnected()) {
Message message = receive();
if (message instanceof DisconnectMessage){
keepRunning = false;
disconnect();
}
/** Pass received messages to the controller */