HTTP servers

This commit is contained in:
Samuel Elliott
2022-10-30 03:53:49 +00:00
parent a6acd99db7
commit 9cb4ced59f
4 changed files with 857 additions and 838 deletions

View File

@@ -43,6 +43,14 @@ export default class Users<T extends UserData> {
return promise;
}
async remove(token: string) {
const promise = this.promise.get(token);
this.promise.delete(token);
await promise;
this.users.delete(token);
}
static coral(store: Store | persist.LocalStorage, znc_proxy_url: string, ratelimit?: boolean): Users<CoralUser<ZncProxyApi>>
static coral(store: Store | persist.LocalStorage, znc_proxy_url?: string, ratelimit?: boolean): Users<CoralUser>
static coral(_store: Store | persist.LocalStorage, znc_proxy_url?: string, ratelimit?: boolean) {