{"action":"created","issue":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io-client-js/issues/288","repository_url":"https://api.github.com/repos/deepstreamIO/deepstream.io-client-js","labels_url":"https://api.github.com/repos/deepstreamIO/deepstream.io-client-js/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/deepstreamIO/deepstream.io-client-js/issues/288/comments","events_url":"https://api.github.com/repos/deepstreamIO/deepstream.io-client-js/issues/288/events","html_url":"https://github.com/deepstreamIO/deepstream.io-client-js/issues/288","id":193370461,"number":288,"title":"event.once eventemitter equivalent","user":{"login":"srossross","id":741611,"avatar_url":"https://avatars.githubusercontent.com/u/741611?v=3","gravatar_id":"","url":"https://api.github.com/users/srossross","html_url":"https://github.com/srossross","followers_url":"https://api.github.com/users/srossross/followers","following_url":"https://api.github.com/users/srossross/following{/other_user}","gists_url":"https://api.github.com/users/srossross/gists{/gist_id}","starred_url":"https://api.github.com/users/srossross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srossross/subscriptions","organizations_url":"https://api.github.com/users/srossross/orgs","repos_url":"https://api.github.com/users/srossross/repos","events_url":"https://api.github.com/users/srossross/events{/privacy}","received_events_url":"https://api.github.com/users/srossross/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-04T19:40:49Z","updated_at":"2016-12-05T18:21:34Z","closed_at":null,"body":"Is there a pattern in deepstream for an event to only be handled once? \r\n\r\nFor example, if I have a comment system where I have `comment {body: str, upvotes: int, score: float}` I want the user to be able to upvote but not be able to modify the score. When a client upvotes I would like to emit an event `client.event.emit('comments/compute-score', recordName)` that will be handled exactly one time. \r\n\r\nMaybe I am thinking about the problem wrong.\r\n"},"comment":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io-client-js/issues/comments/264933144","html_url":"https://github.com/deepstreamIO/deepstream.io-client-js/issues/288#issuecomment-264933144","issue_url":"https://api.github.com/repos/deepstreamIO/deepstream.io-client-js/issues/288","id":264933144,"user":{"login":"srossross","id":741611,"avatar_url":"https://avatars.githubusercontent.com/u/741611?v=3","gravatar_id":"","url":"https://api.github.com/users/srossross","html_url":"https://github.com/srossross","followers_url":"https://api.github.com/users/srossross/followers","following_url":"https://api.github.com/users/srossross/following{/other_user}","gists_url":"https://api.github.com/users/srossross/gists{/gist_id}","starred_url":"https://api.github.com/users/srossross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srossross/subscriptions","organizations_url":"https://api.github.com/users/srossross/orgs","repos_url":"https://api.github.com/users/srossross/repos","events_url":"https://api.github.com/users/srossross/events{/privacy}","received_events_url":"https://api.github.com/users/srossross/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T18:21:34Z","updated_at":"2016-12-05T18:21:34Z","body":"Thanks again. \r\n\r\nIt seems to me that as my scope grows, I will need a lot of rpc endpoints for a larger project. Would you recommend using deepstream for these RPCs - or should I create a restful or other service that would be a companion to deepstream?\r\n\r\n"}}
{"actor":{"display_login":"srossross"}}