diff --git a/src/CCashClient.ts b/src/CCashClient.ts index 5519c95..eb9acb4 100644 --- a/src/CCashClient.ts +++ b/src/CCashClient.ts @@ -85,6 +85,10 @@ export class CCashClient implements ICCashClient { return this.http.get('/help').then((response) => response.data); } + ping(): Promise { + return this.http.get('/ping').then((response) => response.data || false); + } + close(pass: string): Promise { return this.http .post('/close', undefined, { headers: { Password: pass } }) diff --git a/src/CCashClient.types.ts b/src/CCashClient.types.ts index bba9130..c1f675d 100644 --- a/src/CCashClient.types.ts +++ b/src/CCashClient.types.ts @@ -20,6 +20,7 @@ export interface ICCashClient { // System usage help(): Promise; + ping(): Promise; close(pass: string): Promise; contains(user: string): Promise; adminVerifyPass(pass: string): Promise;