{"action":"created","issue":{"url":"https://api.github.com/repos/memorysevencat/nodejs.nicat/issues/10","repository_url":"https://api.github.com/repos/memorysevencat/nodejs.nicat","labels_url":"https://api.github.com/repos/memorysevencat/nodejs.nicat/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/memorysevencat/nodejs.nicat/issues/10/comments","events_url":"https://api.github.com/repos/memorysevencat/nodejs.nicat/issues/10/events","html_url":"https://github.com/memorysevencat/nodejs.nicat/issues/10","id":143960294,"number":10,"title":"Events","user":{"login":"memorysevencat","id":16931882,"avatar_url":"https://avatars.githubusercontent.com/u/16931882?v=3","gravatar_id":"","url":"https://api.github.com/users/memorysevencat","html_url":"https://github.com/memorysevencat","followers_url":"https://api.github.com/users/memorysevencat/followers","following_url":"https://api.github.com/users/memorysevencat/following{/other_user}","gists_url":"https://api.github.com/users/memorysevencat/gists{/gist_id}","starred_url":"https://api.github.com/users/memorysevencat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memorysevencat/subscriptions","organizations_url":"https://api.github.com/users/memorysevencat/orgs","repos_url":"https://api.github.com/users/memorysevencat/repos","events_url":"https://api.github.com/users/memorysevencat/events{/privacy}","received_events_url":"https://api.github.com/users/memorysevencat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-03-28T12:01:12Z","updated_at":"2016-04-07T13:29:10Z","closed_at":null,"body":"```\r\nconst EventEmitter=require('events');\r\nconst util=require('util');\r\n\r\nfunction MyEmitter(){\r\n    EventEmitter.call(this);\r\n}\r\n\r\nutil.inherits(MyEmitter,EventEmitter);\r\n\r\nconst myEmitter=new MyEmitter();\r\nmyEmitter.on('event',()=>{\r\n   console.log('an event occurred!');\r\n});\r\n\r\nmyEmitter.emit('event');\r\n```\r\n`an event occurred!`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/memorysevencat/nodejs.nicat/issues/comments/206902517","html_url":"https://github.com/memorysevencat/nodejs.nicat/issues/10#issuecomment-206902517","issue_url":"https://api.github.com/repos/memorysevencat/nodejs.nicat/issues/10","id":206902517,"user":{"login":"memorysevencat","id":16931882,"avatar_url":"https://avatars.githubusercontent.com/u/16931882?v=3","gravatar_id":"","url":"https://api.github.com/users/memorysevencat","html_url":"https://github.com/memorysevencat","followers_url":"https://api.github.com/users/memorysevencat/followers","following_url":"https://api.github.com/users/memorysevencat/following{/other_user}","gists_url":"https://api.github.com/users/memorysevencat/gists{/gist_id}","starred_url":"https://api.github.com/users/memorysevencat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memorysevencat/subscriptions","organizations_url":"https://api.github.com/users/memorysevencat/orgs","repos_url":"https://api.github.com/users/memorysevencat/repos","events_url":"https://api.github.com/users/memorysevencat/events{/privacy}","received_events_url":"https://api.github.com/users/memorysevencat/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T13:29:10Z","updated_at":"2016-04-07T13:29:10Z","body":"**#emitter.emit(event[,arg1][,arg2][,...])**\r\n\r\nSynchronously calls each of the listeners registered for event, in the order they were registered, passing the supplied arguments to each."}}