{"action":"closed","issue":{"url":"https://api.github.com/repos/TopCloud/socketcluster/issues/74","labels_url":"https://api.github.com/repos/TopCloud/socketcluster/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/TopCloud/socketcluster/issues/74/comments","events_url":"https://api.github.com/repos/TopCloud/socketcluster/issues/74/events","html_url":"https://github.com/TopCloud/socketcluster/issues/74","id":79188115,"number":74,"title":"SC2 - Handling Failure","user":{"login":"orecus","id":2497646,"avatar_url":"https://avatars.githubusercontent.com/u/2497646?v=3","gravatar_id":"","url":"https://api.github.com/users/orecus","html_url":"https://github.com/orecus","followers_url":"https://api.github.com/users/orecus/followers","following_url":"https://api.github.com/users/orecus/following{/other_user}","gists_url":"https://api.github.com/users/orecus/gists{/gist_id}","starred_url":"https://api.github.com/users/orecus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orecus/subscriptions","organizations_url":"https://api.github.com/users/orecus/orgs","repos_url":"https://api.github.com/users/orecus/repos","events_url":"https://api.github.com/users/orecus/events{/privacy}","received_events_url":"https://api.github.com/users/orecus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-21T22:32:29Z","updated_at":"2015-05-21T23:24:17Z","closed_at":"2015-05-21T23:24:17Z","body":"I've just started playing around with nodeJS and Socketcluster. While testing things out there is one thing that I havn't figured out why it's happening. \r\n\r\nI've copied the example code regarding handling errors but I get an error on my client and the server never gets a response back, I'm sure i'm missing something basic here as I'm new to both nodeJS and SocketCluster.\r\n\r\nI get the data to the client properly, but i just can't seem to ack it back to the server that it's recived.\r\n\r\nClient:\r\n ```javascript\r\n        socket.on('server-doGet', function (data, res) {\r\n          if (true) {\r\n            console.log(JSON.parse(data));\r\n            res.end('Success'); // Send back success\r\n          } else {\r\n            res.error('Error message'); // Send back error\r\n          }\r\n        });\r\n```\r\n**Error:** Uncaught TypeError: res.end is not a function\r\n\r\nServer Side\r\n```javascript\r\n            socket.emit('server-doGet', JSON.stringify(results), function (err) {\r\n              if (err) { console.log(\"Error! No response from: \"+socket.remoteAddress+' on the emit event: '+err); }\r\n              else { console.log(\"Success! Successfully emitted response to: \"+socket.remoteAddress); }\r\n            });\r\n```\r\n**Error:** Error! No response from: 127.0.0.1 on the emit event: Error: Event response for 'server-doGet' timed out\r\n\r\nAny further clarification on how to handle errors would be great!"}}