From 875ba862f0f98b376f339e7fa603f5a2f1f2de37 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 6 Feb 2023 03:26:06 -0500 Subject: [PATCH] *Use createSocket not createClient --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index aeea1a7..f5564be 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,7 @@ export class SwarmClient extends Client { "listenConnections", { swarm: this.swarm }, (socketId: any) => { - this.emit("connection", createClient(socketId)); + this.emit("connection", createSocket(socketId)); } ); }