From 3f8faa4daa333624a7b90bad867db1b03b5507f5 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Thu, 16 Sep 2021 17:08:59 -0400 Subject: [PATCH] kill() method for trashing smith --- utils/GunSmith/GunSmith.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/GunSmith/GunSmith.js b/utils/GunSmith/GunSmith.js index b6e300bc..1980991d 100644 --- a/utils/GunSmith/GunSmith.js +++ b/utils/GunSmith/GunSmith.js @@ -712,7 +712,7 @@ function createUserReplica() { } /** - * @typedef {Smith.GunSmithNode & { reforge(): void }} RootNode + * @typedef {Smith.GunSmithNode & { kill(): void }} RootNode */ /** @@ -727,8 +727,10 @@ const Gun = opts => { // signature return { ...createReplica('$root'), - reforge() { - forge() + kill() { + currentGun.send('bye') + currentGun.disconnect() + currentGun.kill() } } }