From b252b331ad7bf11e0a0aa5d10f29f409e7961b27 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 1 Feb 2023 14:00:08 -0500 Subject: [PATCH] *Add join api --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 290caab..fe247b2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,6 +100,10 @@ export class Socket extends Client { ); } + join(topic: Buffer): void { + this.callModule("join", { id: this.id, topic }); + } + private ensureEvent(event: string): void { if (!(event in this.eventUpdates)) { this.eventUpdates[event] = [];