From e26c76c83df03c1942f303b058711ba644ee687c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=C2=A0F=2E=20Romaniello?= Date: Mon, 22 Oct 2018 15:07:04 -0300 Subject: [PATCH] allow changing the drain property in the receiver --- lib/receiver.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/receiver.ts b/lib/receiver.ts index ef27748..9509907 100644 --- a/lib/receiver.ts +++ b/lib/receiver.ts @@ -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); }