Skip to content

Commit

Permalink
allow changing the drain property in the receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed Oct 22, 2018
1 parent fc1f796 commit e26c76c
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 e26c76c

Please sign in to comment.