corrigiendo socket handlers