I improve the comunication with sockets with the callback of emits of socket.io