Skip to content

Commit

Permalink
Merge pull request #14 from jfromaniello/allow_changing_drain
Browse files Browse the repository at this point in the history
allow changing the drain property in the receiver
  • Loading branch information
amarzavery authored Oct 22, 2018
2 parents fc1f796 + e26c76c commit 209d5a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/receiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export class Receiver extends Link {
return (this._link as RheaReceiver).drain;
}

set drain(value: boolean) {
(this._link as RheaReceiver).drain = value;
}

addCredit(credit: number): void {
(this._link as RheaReceiver).add_credit(credit);
}
Expand Down

0 comments on commit 209d5a5

Please sign in to comment.