Skip to content

Commit

Permalink
feat(Link): add Link.Attached signal
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jun 26, 2015
1 parent 73f373d commit 21fd06f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ Link.ErrorReceived = 'link:errorReceived';
// On link credit changed.
Link.CreditChange = 'link:creditChange';


// On completion of detach.
Link.Attached = 'link:attached';

// On completion of detach.
Link.Detached = 'link:detached';

Expand Down Expand Up @@ -121,6 +125,8 @@ Link.prototype._attachReceived = function(attachFrame) {
this.session._linkAttached(this);

this._checkCredit();

this.emit(Link.Attached, this);
};

// default implementation does nothing
Expand Down

0 comments on commit 21fd06f

Please sign in to comment.