From 2b5580ad9de6481a11eda64ff6ce4613ee1779a1 Mon Sep 17 00:00:00 2001 From: Rinse Date: Thu, 9 Nov 2023 16:43:22 +0000 Subject: [PATCH] fix function name --- src/rpc/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/src/index.ts b/src/rpc/src/index.ts index 46baf828..d29d474c 100644 --- a/src/rpc/src/index.ts +++ b/src/rpc/src/index.ts @@ -62,7 +62,7 @@ class PlebbitWsServer extends EventEmitter { this.emit("error", error); }); - this.emit("error", (err) => { + this.on("error", (err) => { log.error(err); });