From c6cc452c81777c5409677febe8f3f28effa105cf Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Sat, 14 Sep 2019 07:55:39 -0300 Subject: [PATCH 1/2] feat: add option `disableAutoRegisterInterceptors` --- src/echo.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/echo.ts b/src/echo.ts index c02ec503..72123d89 100644 --- a/src/echo.ts +++ b/src/echo.ts @@ -21,7 +21,10 @@ export default class Echo { constructor(options: any) { this.options = options; this.connect(); - this.registerInterceptors(); + + if (!this.options.disableAutoRegisterInterceptors) { + this.registerInterceptors(); + } } /** From cfe49020eb0a6fb1abbb26baad74ca9f614d77d6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 14 Sep 2019 11:46:36 -0500 Subject: [PATCH 2/2] Update echo.ts --- src/echo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/echo.ts b/src/echo.ts index 72123d89..7dfab6e1 100644 --- a/src/echo.ts +++ b/src/echo.ts @@ -22,7 +22,7 @@ export default class Echo { this.options = options; this.connect(); - if (!this.options.disableAutoRegisterInterceptors) { + if (! this.options.withoutInterceptors) { this.registerInterceptors(); } }