{"action":"closed","issue":{"url":"https://api.github.com/repos/Peer-to-Text/Cobra/issues/2","labels_url":"https://api.github.com/repos/Peer-to-Text/Cobra/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Peer-to-Text/Cobra/issues/2/comments","events_url":"https://api.github.com/repos/Peer-to-Text/Cobra/issues/2/events","html_url":"https://github.com/Peer-to-Text/Cobra/issues/2","id":102576370,"number":2,"title":"Mettre les socket.send() dans une fonction et fonction kick()","user":{"login":"Julien00859","id":8208953,"avatar_url":"https://avatars.githubusercontent.com/u/8208953?v=3","gravatar_id":"","url":"https://api.github.com/users/Julien00859","html_url":"https://github.com/Julien00859","followers_url":"https://api.github.com/users/Julien00859/followers","following_url":"https://api.github.com/users/Julien00859/following{/other_user}","gists_url":"https://api.github.com/users/Julien00859/gists{/gist_id}","starred_url":"https://api.github.com/users/Julien00859/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Julien00859/subscriptions","organizations_url":"https://api.github.com/users/Julien00859/orgs","repos_url":"https://api.github.com/users/Julien00859/repos","events_url":"https://api.github.com/users/Julien00859/events{/privacy}","received_events_url":"https://api.github.com/users/Julien00859/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Peer-to-Text/Cobra/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-23T00:12:35Z","updated_at":"2015-08-24T12:01:28Z","closed_at":"2015-08-24T12:01:28Z","body":"Il faudrait isoler l'envoie sur le socket dans une fonction remplie de try except pour éviter les désagréable surprise du genre \"connexion coupé par l'autre enfoiré\".\r\n\r\nAussi ajouter une fonction kick() pour fermer le socket correctement et supprimer l'utilisateur de la liste socketlist et de la mapping self.clients[uuid][\"socket\"] et aussi la mapping self.clients[uuid] dans le cas où il n'y a plus aucun socket actif\r\n"}}