Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
rauchg opened this Issue · 4 comments

2 participants

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

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

@rauchg
Owner

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
Owner

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.