{"action":"created","issue":{"url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/135","labels_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/135/comments","events_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/135/events","html_url":"https://github.com/RuntimeTools/appmetrics/issues/135","id":128567517,"number":135,"title":"TypeError thrown using appmetrics v1.0.6","user":{"login":"cbridgha","id":2151186,"avatar_url":"https://avatars.githubusercontent.com/u/2151186?v=3","gravatar_id":"","url":"https://api.github.com/users/cbridgha","html_url":"https://github.com/cbridgha","followers_url":"https://api.github.com/users/cbridgha/followers","following_url":"https://api.github.com/users/cbridgha/following{/other_user}","gists_url":"https://api.github.com/users/cbridgha/gists{/gist_id}","starred_url":"https://api.github.com/users/cbridgha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbridgha/subscriptions","organizations_url":"https://api.github.com/users/cbridgha/orgs","repos_url":"https://api.github.com/users/cbridgha/repos","events_url":"https://api.github.com/users/cbridgha/events{/privacy}","received_events_url":"https://api.github.com/users/cbridgha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T15:56:09Z","updated_at":"2016-01-25T16:38:50Z","closed_at":null,"body":"I get this error thrown while starting a profiling session on Node (v0.12.7).\r\n\r\nWe discovered a workaround by forcing an npm install of appmetrics v1.0.3 or earlier. \r\nBy default, v1.0.6 is currently installed.   This was on Windows, and was also recreated on iOS.\r\n\r\n[01/21/16 15:32:11] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.0.6.201601201151 (Agent Core 3.0.6.201511031005)\r\n[01/21/16 15:32:11] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker chuckpad540:1883\r\nC:\\Users\\cbridgha\\AppData\\Roaming\\npm\\node_modules\\appmetrics\\lib\\aspect.js:54\r\n\t\tvar existing = target[methodName];\r\n\t\t                     ^\r\nTypeError: Cannot read property 'on' of undefined\r\n    at C:\\Users\\cbridgha\\AppData\\Roaming\\npm\\node_modules\\appmetrics\\lib\\aspect.js:54:24\r\n    at Array.forEach (native)\r\n    at Object.exports.before (C:\\Users\\cbridgha\\AppData\\Roaming\\npm\\node_modules\\appmetrics\\lib\\aspect.js:53:8)\r\n    at SocketioProbe.attach (C:\\Users\\cbridgha\\AppData\\Roaming\\npm\\node_modules\\appmetrics\\probes\\socketio-probe.js:68:10)\r\n    at C:\\Users\\cbridgha\\AppData\\Roaming\\npm\\node_modules\\appmetrics\\index.js:107:21\r\n    at Module.newFunc (C:\\Users\\cbridgha\\AppData\\Roaming\\npm\\node_modules\\appmetrics\\lib\\aspect.js:100:12)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (C:\\Users\\cbridgha\\git\\nodejs-chat\\server.js:5:10)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n"},"comment":{"url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/comments/174574305","html_url":"https://github.com/RuntimeTools/appmetrics/issues/135#issuecomment-174574305","issue_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/135","id":174574305,"user":{"login":"tobespc","id":13151286,"avatar_url":"https://avatars.githubusercontent.com/u/13151286?v=3","gravatar_id":"","url":"https://api.github.com/users/tobespc","html_url":"https://github.com/tobespc","followers_url":"https://api.github.com/users/tobespc/followers","following_url":"https://api.github.com/users/tobespc/following{/other_user}","gists_url":"https://api.github.com/users/tobespc/gists{/gist_id}","starred_url":"https://api.github.com/users/tobespc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobespc/subscriptions","organizations_url":"https://api.github.com/users/tobespc/orgs","repos_url":"https://api.github.com/users/tobespc/repos","events_url":"https://api.github.com/users/tobespc/events{/privacy}","received_events_url":"https://api.github.com/users/tobespc/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T16:38:50Z","updated_at":"2016-01-25T16:38:50Z","body":"this works on the latest version of socket.io (v1.4.4) but is failing on the 0.9.17 that you are using"}}