Skip to content
This repository

Implement `socket.write` callback for all transports #136

Closed
guille opened this Issue March 13, 2013 · 4 comments

2 participants

Guillermo Rauch Ted Benson
Guillermo Rauch
Owner
socket.write('aa', function(){
  // 'aa' flushed
});
Ted Benson
eob commented March 16, 2013

You mean the ability to listen to a callback for when socket.write occurs?

Guillermo Rauch
Owner

Yep. This would vary by transport. For example, polling we would do upon the 200 response from the POST.

Ted Benson
eob commented March 16, 2013

So, for example, on polling-jsonp.js, you'd fire a writeComplete (or something) event inside:

function complete () {
   initIframe();
   fn();
};
Guillermo Rauch
Owner

Exactly

Guillermo Rauch guille closed this June 06, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.