{"issue":{"milestone":null,"user":{"id":928096,"login":"matt-callanan","url":"https://api.github.com/users/matt-callanan","avatar_url":"https://secure.gravatar.com/avatar/51ec40dbef855f500991912d5d373106?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"51ec40dbef855f500991912d5d373106"},"title":"feature requests: callbacks on event","created_at":"2011-12-16T19:33:51Z","updated_at":"2011-12-16T19:33:51Z","labels":[],"state":"open","id":2583440,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/simb/FlashSocket.IO/issues/9","closed_at":null,"body":"Requesting callbacks on events, per our quick email exchange.\r\n\r\nHere's how it works in node:\r\n\r\nClient:\r\n\r\nsocket.emit('test', { from: \"client\" }, function(response) {\r\n  //do stuff with response, which == { from: \"server\" }\r\n});\r\n\r\nServer:\r\n\r\nsocket.on('test', function(message, callback) {\r\n //do stuff with message, which == { from: \"client\" }\r\n callback({ from: \"server\" });\r\n});","number":9,"url":"https://api.github.com/repos/simb/FlashSocket.IO/issues/9","comments":0,"assignee":null},"action":"opened"}