Prototype channel list unsub

This commit is contained in:
Hri7566 2024-01-22 16:53:06 -05:00
parent 89613ca641
commit b6e9ccd441
2 changed files with 15 additions and 1 deletions

View File

@ -395,7 +395,13 @@ export class Socket extends EventEmitter {
ch.playNotes(msg, this);
}
public subscribeToChannelList() {}
public subscribeToChannelList() {
// TODO Channel list subbing
}
public unsubscribeFromChannelList() {
// TODO Channel list unsubbing
}
}
export const socketsBySocketID = new Map<string, Socket>();

View File

@ -0,0 +1,8 @@
import { ServerEventListener } from "../../../../util/types";
export const minus_ls: ServerEventListener<"-ls"> = {
id: "-ls",
callback: (msg, socket) => {
socket.unsubscribeFromChannelList();
}
};