feat: add getListeners method to Socket
This commit is contained in:
parent
8c6b038f89
commit
0ec1dd1aac
|
@ -253,6 +253,10 @@ export class Socket extends Client {
|
|||
);
|
||||
}
|
||||
|
||||
async getListeners() {
|
||||
return this.callModuleReturn("socketListeners", { id: this.id });
|
||||
}
|
||||
|
||||
private ensureEvent(event: string): void {
|
||||
if (!(event in this.eventUpdates)) {
|
||||
this.eventUpdates[event] = new Map<Function, DataFn>();
|
||||
|
|
Loading…
Reference in New Issue