gestion correcte sockets
require chat.socket()