{"action":"closed","issue":{"url":"https://api.github.com/repos/adonisjs/discussion/issues/37","repository_url":"https://api.github.com/repos/adonisjs/discussion","labels_url":"https://api.github.com/repos/adonisjs/discussion/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/adonisjs/discussion/issues/37/comments","events_url":"https://api.github.com/repos/adonisjs/discussion/issues/37/events","html_url":"https://github.com/adonisjs/discussion/issues/37","id":232492734,"number":37,"title":"Promise support  on methods that requires callback","user":{"login":"ajcastro","id":4918318,"avatar_url":"https://avatars0.githubusercontent.com/u/4918318?v=4","gravatar_id":"","url":"https://api.github.com/users/ajcastro","html_url":"https://github.com/ajcastro","followers_url":"https://api.github.com/users/ajcastro/followers","following_url":"https://api.github.com/users/ajcastro/following{/other_user}","gists_url":"https://api.github.com/users/ajcastro/gists{/gist_id}","starred_url":"https://api.github.com/users/ajcastro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajcastro/subscriptions","organizations_url":"https://api.github.com/users/ajcastro/orgs","repos_url":"https://api.github.com/users/ajcastro/repos","events_url":"https://api.github.com/users/ajcastro/events{/privacy}","received_events_url":"https://api.github.com/users/ajcastro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-31T08:33:41Z","updated_at":"2017-10-02T14:31:36Z","closed_at":"2017-10-02T14:31:36Z","author_association":"NONE","body":"Is there a promise-approach for methods for example the `connect()` method (http://www.adonisjs.com/docs/3.2/websocket#_connect_callback) :\r\n```javascript\r\n\r\nconst client = io.channel('chat')\r\nclient.connect().then(function () {\r\n  // all good\r\n}).catch(function () {\r\n  // do something\r\n});\r\n```\r\n"}}
{"actor":{"display_login":"thetutlage"}}