{"action":"created","issue":{"url":"https://api.github.com/repos/muaz-khan/getStats/issues/15","repository_url":"https://api.github.com/repos/muaz-khan/getStats","labels_url":"https://api.github.com/repos/muaz-khan/getStats/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/muaz-khan/getStats/issues/15/comments","events_url":"https://api.github.com/repos/muaz-khan/getStats/issues/15/events","html_url":"https://github.com/muaz-khan/getStats/issues/15","id":368061282,"node_id":"MDU6SXNzdWUzNjgwNjEyODI=","number":15,"title":"support Android/IOS  webrtc bridge.","user":{"login":"orangebook","id":7347198,"node_id":"MDQ6VXNlcjczNDcxOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7347198?v=4","gravatar_id":"","url":"https://api.github.com/users/orangebook","html_url":"https://github.com/orangebook","followers_url":"https://api.github.com/users/orangebook/followers","following_url":"https://api.github.com/users/orangebook/following{/other_user}","gists_url":"https://api.github.com/users/orangebook/gists{/gist_id}","starred_url":"https://api.github.com/users/orangebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orangebook/subscriptions","organizations_url":"https://api.github.com/users/orangebook/orgs","repos_url":"https://api.github.com/users/orangebook/repos","events_url":"https://api.github.com/users/orangebook/events{/privacy}","received_events_url":"https://api.github.com/users/orangebook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-09T06:39:11Z","updated_at":"2018-10-14T13:51:54Z","closed_at":null,"author_association":"NONE","body":""},"comment":{"url":"https://api.github.com/repos/muaz-khan/getStats/issues/comments/429628178","html_url":"https://github.com/muaz-khan/getStats/issues/15#issuecomment-429628178","issue_url":"https://api.github.com/repos/muaz-khan/getStats/issues/15","id":429628178,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTYyODE3OA==","user":{"login":"orangebook","id":7347198,"node_id":"MDQ6VXNlcjczNDcxOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7347198?v=4","gravatar_id":"","url":"https://api.github.com/users/orangebook","html_url":"https://github.com/orangebook","followers_url":"https://api.github.com/users/orangebook/followers","following_url":"https://api.github.com/users/orangebook/following{/other_user}","gists_url":"https://api.github.com/users/orangebook/gists{/gist_id}","starred_url":"https://api.github.com/users/orangebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orangebook/subscriptions","organizations_url":"https://api.github.com/users/orangebook/orgs","repos_url":"https://api.github.com/users/orangebook/repos","events_url":"https://api.github.com/users/orangebook/events{/privacy}","received_events_url":"https://api.github.com/users/orangebook/received_events","type":"User","site_admin":false},"created_at":"2018-10-14T13:51:54Z","updated_at":"2018-10-14T13:51:54Z","author_association":"NONE","body":"@muaz-khan Can you talk about \r\n```\r\n peer.getStats(function(res) {\r\n                var items = [];\r\n                res.result().forEach(function(res) {\r\n                    var item = {};\r\n                    try {\r\n                        res.names().forEach(function(name) {\r\n                            item[name] = res.stat(name);\r\n                        });\r\n                    } catch (error) {\r\n                        console.error(error);\r\n                    }\r\n                    item.id = res.id;\r\n                    item.type = res.type;\r\n                    item.timestamp = res.timestamp;\r\n                    items.push(item);\r\n                });\r\n                cb(items);\r\n            })\r\n```\r\nI have mocked `result()` function, but  I didn't know what `names()` function mean "}}
{"actor":{"display_login":"orangebook"}}