From 0483c27c94c77a17c5562f77f4c00a005444b596 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Apr 2023 22:51:51 -0400 Subject: [PATCH] *add destroy method --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index e553858..af934cd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -255,6 +255,10 @@ class Message extends Client { public send(data: any) { this._send?.({ action: "send", args: [data] }); } + + public destroy(error: Error) { + this._send?.({ action: "destroy", args: [error] }); + } } const createChannel = factory(Channel, MODULE);