{"action":"created","issue":{"url":"https://api.github.com/repos/sbordet/import_issues/issues/81","labels_url":"https://api.github.com/repos/sbordet/import_issues/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/sbordet/import_issues/issues/81/comments","events_url":"https://api.github.com/repos/sbordet/import_issues/issues/81/events","html_url":"https://github.com/sbordet/import_issues/issues/81","id":105547272,"number":81,"title":".deliver example is missing the channel parm","user":{"login":"sbordet","id":414681,"avatar_url":"https://avatars.githubusercontent.com/u/414681?v=3","gravatar_id":"","url":"https://api.github.com/users/sbordet","html_url":"https://github.com/sbordet","followers_url":"https://api.github.com/users/sbordet/followers","following_url":"https://api.github.com/users/sbordet/following{/other_user}","gists_url":"https://api.github.com/users/sbordet/gists{/gist_id}","starred_url":"https://api.github.com/users/sbordet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbordet/subscriptions","organizations_url":"https://api.github.com/users/sbordet/orgs","repos_url":"https://api.github.com/users/sbordet/repos","events_url":"https://api.github.com/users/sbordet/events{/privacy}","received_events_url":"https://api.github.com/users/sbordet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T08:47:34Z","updated_at":"2015-09-09T08:47:36Z","closed_at":"2015-09-09T08:47:36Z","body":"http://cometd.org/documentation/cometd-java/server/bayeux\n\nThis example is missing the channel parm on the channel.deliver call. Should it not read something along the lines of \n\nchannel.deliver(getClient(), \"/chat\", data, null);\n\n\n\n\n\npublic class ChatService extends BayeuxService\n{\n    ...\n    public void processPrivateChat(Client remote, Map<String, Object> data)\n    {\n        // Extract the userId\n        String friendUserId = (String)data.get(\"friendUserId\");\n\n        // Do not forget to check if that friendUserId is really your friend !\n\n        // Map the database userId to a Bayeux clientId via some other service\n        String friendClientId = this.userToClientMapper.get(friendUserId);\n        \n        Client remoteFriend = getBayeux().getClient(friendClientId);\n        channel.deliver(getClient(), data, null);\n    }\n    ...\n}\n"},"comment":{"url":"https://api.github.com/repos/sbordet/import_issues/issues/comments/138831975","html_url":"https://github.com/sbordet/import_issues/issues/81#issuecomment-138831975","issue_url":"https://api.github.com/repos/sbordet/import_issues/issues/81","id":138831975,"user":{"login":"sbordet","id":414681,"avatar_url":"https://avatars.githubusercontent.com/u/414681?v=3","gravatar_id":"","url":"https://api.github.com/users/sbordet","html_url":"https://github.com/sbordet","followers_url":"https://api.github.com/users/sbordet/followers","following_url":"https://api.github.com/users/sbordet/following{/other_user}","gists_url":"https://api.github.com/users/sbordet/gists{/gist_id}","starred_url":"https://api.github.com/users/sbordet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbordet/subscriptions","organizations_url":"https://api.github.com/users/sbordet/orgs","repos_url":"https://api.github.com/users/sbordet/repos","events_url":"https://api.github.com/users/sbordet/events{/privacy}","received_events_url":"https://api.github.com/users/sbordet/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T08:47:35Z","updated_at":"2015-09-09T08:47:35Z","body":"sbordet on 2010-03-08 18:17:24.0:\nFixed, thanks for reporting."}}