*Add join api

This commit is contained in:
Derrick Hammer 2023-02-01 14:00:08 -05:00
parent 0bcec3e3e1
commit b252b331ad
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -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] = [];