From 90dd9d6ebf95de7174a1fbed4ce590a2d112547c Mon Sep 17 00:00:00 2001 From: Petra Date: Thu, 8 Dec 2022 20:36:55 +0700 Subject: [PATCH] feat: add missing error consumer setter on connector --- lib/rsocket_connector.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/rsocket_connector.dart b/lib/rsocket_connector.dart index 8a70952..f2e217f 100644 --- a/lib/rsocket_connector.dart +++ b/lib/rsocket_connector.dart @@ -37,6 +37,11 @@ class RSocketConnector { return this; } + RSocketConnector errorConsumer(ErrorConsumer errorConsumer) { + _errorConsumer = errorConsumer; + return this; + } + // set the keep alive, and unit is second RSocketConnector keepAlive(int interval, int maxLifeTime) { this.keepAliveInterval = interval;