{"action":"closed","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/792","labels_url":"https://api.github.com/repos/meanjs/mean/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/792/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/792/events","html_url":"https://github.com/meanjs/mean/issues/792","id":100768961,"number":792,"title":"Best practice to communicate REST API with SocketIO?","user":{"login":"aralroca","id":13313058,"avatar_url":"https://avatars.githubusercontent.com/u/13313058?v=3","gravatar_id":"","url":"https://api.github.com/users/aralroca","html_url":"https://github.com/aralroca","followers_url":"https://api.github.com/users/aralroca/followers","following_url":"https://api.github.com/users/aralroca/following{/other_user}","gists_url":"https://api.github.com/users/aralroca/gists{/gist_id}","starred_url":"https://api.github.com/users/aralroca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aralroca/subscriptions","organizations_url":"https://api.github.com/users/aralroca/orgs","repos_url":"https://api.github.com/users/aralroca/repos","events_url":"https://api.github.com/users/aralroca/events{/privacy}","received_events_url":"https://api.github.com/users/aralroca/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-13T13:26:56Z","updated_at":"2015-10-17T05:03:03Z","closed_at":"2015-10-17T05:03:03Z","body":"I have a question...\r\n\r\nI want to call the methods \"*leave*\" and \"*join*\" in **socketIO** from  **REST API**  methods (server controllers) .\r\n\r\n* What is the best practice to do that? \r\n* How can I get the current socket in the REST API?\r\n\r\n*Thank you a lot!*"}}