{"action":"created","issue":{"url":"https://api.github.com/repos/sidorares/node-dbus/issues/60","labels_url":"https://api.github.com/repos/sidorares/node-dbus/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/sidorares/node-dbus/issues/60/comments","events_url":"https://api.github.com/repos/sidorares/node-dbus/issues/60/events","html_url":"https://github.com/sidorares/node-dbus/issues/60","id":64966482,"number":60,"title":"How to stop listening to signals","user":{"login":"nisargjhaveri","id":6381721,"avatar_url":"https://avatars.githubusercontent.com/u/6381721?v=3","gravatar_id":"","url":"https://api.github.com/users/nisargjhaveri","html_url":"https://github.com/nisargjhaveri","followers_url":"https://api.github.com/users/nisargjhaveri/followers","following_url":"https://api.github.com/users/nisargjhaveri/following{/other_user}","gists_url":"https://api.github.com/users/nisargjhaveri/gists{/gist_id}","starred_url":"https://api.github.com/users/nisargjhaveri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nisargjhaveri/subscriptions","organizations_url":"https://api.github.com/users/nisargjhaveri/orgs","repos_url":"https://api.github.com/users/nisargjhaveri/repos","events_url":"https://api.github.com/users/nisargjhaveri/events{/privacy}","received_events_url":"https://api.github.com/users/nisargjhaveri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sidorares/node-dbus/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-28T17:11:01Z","updated_at":"2015-03-29T12:41:52Z","closed_at":null,"body":"I am binding an event handler as followed\r\n```javascript\r\nvar screenSaver;\r\nsessionBus.getService('org.gnome.ScreenSaver').getInterface(\r\n    '/org/gnome/ScreenSaver',\r\n    'org.gnome.ScreenSaver',\r\n    function(err, _screenSaver) {\r\n        screenSaver = _screenSaver;\r\n\r\n        screenSaver.on('ActiveChanged', screenSaverActiveChange);\r\n    }\r\n);\r\n```\r\n\r\nNow after some time I want to unbind the `screenSaverActiveChange` event handler, so I tried,\r\n\r\n```javascript\r\nscreenSaver.removeListener('ActiveChanged', screenSaverActiveChange);\r\n```\r\n\r\nBut it says,\r\n> removeListener not implemented for dbus signals\r\n\r\nNow, what is the correct way to unbind this event handler? Is there any other way I can implement the similar thing?"},"comment":{"url":"https://api.github.com/repos/sidorares/node-dbus/issues/comments/87404912","html_url":"https://github.com/sidorares/node-dbus/issues/60#issuecomment-87404912","issue_url":"https://api.github.com/repos/sidorares/node-dbus/issues/60","id":87404912,"user":{"login":"nisargjhaveri","id":6381721,"avatar_url":"https://avatars.githubusercontent.com/u/6381721?v=3","gravatar_id":"","url":"https://api.github.com/users/nisargjhaveri","html_url":"https://github.com/nisargjhaveri","followers_url":"https://api.github.com/users/nisargjhaveri/followers","following_url":"https://api.github.com/users/nisargjhaveri/following{/other_user}","gists_url":"https://api.github.com/users/nisargjhaveri/gists{/gist_id}","starred_url":"https://api.github.com/users/nisargjhaveri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nisargjhaveri/subscriptions","organizations_url":"https://api.github.com/users/nisargjhaveri/orgs","repos_url":"https://api.github.com/users/nisargjhaveri/repos","events_url":"https://api.github.com/users/nisargjhaveri/events{/privacy}","received_events_url":"https://api.github.com/users/nisargjhaveri/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T12:41:52Z","updated_at":"2015-03-29T12:41:52Z","body":"On doing `removeListener` on `bus.signals`, I am able to get `bus.signals._events` empty after changing a bit in `introspect.js`.\r\n\r\nMy problem now is, do I still need to do `RemoveMatch` after  `bus.signals._events` is empty for some signal or is it taken care of?"}}