{"action":"created","issue":{"url":"https://api.github.com/repos/gdaws/node-stomp/issues/37","labels_url":"https://api.github.com/repos/gdaws/node-stomp/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/gdaws/node-stomp/issues/37/comments","events_url":"https://api.github.com/repos/gdaws/node-stomp/issues/37/events","html_url":"https://github.com/gdaws/node-stomp/issues/37","id":127221102,"number":37,"title":"EventEmitter memory leak with ack message","user":{"login":"jcreigno","id":647749,"avatar_url":"https://avatars.githubusercontent.com/u/647749?v=3","gravatar_id":"","url":"https://api.github.com/users/jcreigno","html_url":"https://github.com/jcreigno","followers_url":"https://api.github.com/users/jcreigno/followers","following_url":"https://api.github.com/users/jcreigno/following{/other_user}","gists_url":"https://api.github.com/users/jcreigno/gists{/gist_id}","starred_url":"https://api.github.com/users/jcreigno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcreigno/subscriptions","organizations_url":"https://api.github.com/users/jcreigno/orgs","repos_url":"https://api.github.com/users/jcreigno/repos","events_url":"https://api.github.com/users/jcreigno/events{/privacy}","received_events_url":"https://api.github.com/users/jcreigno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-18T12:54:06Z","updated_at":"2016-01-20T11:23:07Z","closed_at":null,"body":"When I set ack mode to `client-individual` with a call back `message.ack` I get the following error :\r\n\r\n```\r\n(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.\r\nTrace\r\n    at Client.addListener (events.js:239:17)\r\n    at Client.sendFrame (/home/jerome/public/node-stomp/lib/Client.js:78:12)\r\n    at Subscription._sendAck (/home/jerome/public/node-stomp/lib/client/Subscription.js:106:18)\r\n    at IncomingFrame.ack (/home/jerome/public/node-stomp/lib/client/Subscription.js:135:12)\r\n    at IncomingFrame.<anonymous> (/home/jerome/public/node-stomp/test/Client.js:529:33)\r\n    at emitNone (events.js:72:20)\r\n    at IncomingFrame.emit (events.js:166:7)\r\n    at endReadableNT (_stream_readable.js:905:12)\r\n    at doNTCallback2 (node.js:441:9)\r\n    at process._tickCallback (node.js:355:17)\r\n```\r\nI'm using Node v4.2.4 on linux.\r\n\r\nI can create a pull request with a test case to reproduce this issue, though I'm not sure how to fix it.\r\n\r\nJerome"},"comment":{"url":"https://api.github.com/repos/gdaws/node-stomp/issues/comments/173176235","html_url":"https://github.com/gdaws/node-stomp/issues/37#issuecomment-173176235","issue_url":"https://api.github.com/repos/gdaws/node-stomp/issues/37","id":173176235,"user":{"login":"jcreigno","id":647749,"avatar_url":"https://avatars.githubusercontent.com/u/647749?v=3","gravatar_id":"","url":"https://api.github.com/users/jcreigno","html_url":"https://github.com/jcreigno","followers_url":"https://api.github.com/users/jcreigno/followers","following_url":"https://api.github.com/users/jcreigno/following{/other_user}","gists_url":"https://api.github.com/users/jcreigno/gists{/gist_id}","starred_url":"https://api.github.com/users/jcreigno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcreigno/subscriptions","organizations_url":"https://api.github.com/users/jcreigno/orgs","repos_url":"https://api.github.com/users/jcreigno/repos","events_url":"https://api.github.com/users/jcreigno/events{/privacy}","received_events_url":"https://api.github.com/users/jcreigno/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T11:23:07Z","updated_at":"2016-01-20T11:23:07Z","body":"Yes I've changed the Client test file on my clone to reproduce the warning : 1a7a633be90b505e9fda8749a4c42af181fdfb7b\r\n\r\nIndeed it might not be a memory leak but I find it a little annoying to have this warning popping out just by adding a callback arg on `message.ack`.\r\n"}}