title: Success Callback for emit method in socket.io
body: <p>Im trying to emit a custom message from my client. I need to perform some actions on its success and failure. Now, how can i attach the success callback to emit method?</p>
  
  <p>For error callback , i used <a href="https://github.com/LearnBoost/socket.io/wiki/Exposed-events" rel="noreferrer">Exposed events</a> doc and got it working</p>
  
  <pre><code>socket.on('error', () -&gt; console.log("Error Occured"))
  </code></pre>
  
  <p>For success, i tried</p>
  
  <pre><code>socket.emit('my custom method', {content: json},() -&gt; console.log("Emitted"))
  </code></pre>
  
  <p>This callback is never been triggered irrespective whether its a success or failure.</p>
  
  <p>How can i get hold of success handler?</p>