Skip to content

Loading…

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

Closed
rauchg opened this Issue · 4 comments

2 participants

@rauchg
socket.write('aa', function(){
  // 'aa' flushed
});
@eob

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

@rauchg

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

@eob

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

function complete () {
   initIframe();
   fn();
};
@rauchg

Exactly

@rauchg rauchg closed this
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.