@Override
    public void run() {
      
        try{
            while(true){

                Object ob = null;

                if(stop)
                     break; 

                if((ob = in.readObject()) != null){
                    Message m = (Message)ob;
                    
                    if(m.getType() == MessageType.sending)
                       System.out.printf("\n%s diz : %s \n", m.getUser(), m.getMessage());
                }
            }
            
            in.close();
        }catch(Exception e){
            e.printStackTrace();
        }
        
    }