Prototype channel list unsub
This commit is contained in:
parent
89613ca641
commit
b6e9ccd441
|
@ -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>();
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
import { ServerEventListener } from "../../../../util/types";
|
||||
|
||||
export const minus_ls: ServerEventListener<"-ls"> = {
|
||||
id: "-ls",
|
||||
callback: (msg, socket) => {
|
||||
socket.unsubscribeFromChannelList();
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue