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)); } ); }