Skip to content

Commit 51b0d48

Browse files
itsrachelfishellemouton
authored andcommitted
api+lit: Create listSubServerStatus function
1 parent 6ed39b0 commit 51b0d48

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/api/lit.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import * as ACCOUNT from 'types/generated/lit-accounts_pb';
22
import * as SESSION from 'types/generated/lit-sessions_pb';
3+
import * as STATUS from 'types/generated/lit-status_pb';
34
import { Accounts } from 'types/generated/lit-accounts_pb_service';
45
import { Sessions } from 'types/generated/lit-sessions_pb_service';
6+
import { Status } from 'types/generated/lit-status_pb_service';
57
import { b64 } from 'util/strings';
68
import { MAX_DATE } from 'util/constants';
79
import BaseApi from './base';
@@ -84,6 +86,12 @@ class LitApi extends BaseApi<LitEvents> {
8486
const res = await this._grpc.request(Sessions.RevokeSession, req, this._meta);
8587
return res.toObject();
8688
}
89+
90+
async listSubServerStatus(): Promise<STATUS.SubServerStatusResp.AsObject> {
91+
const req = new STATUS.SubServerStatusReq();
92+
const res = await this._grpc.request(Status.SubServerStatus, req, this._meta);
93+
return res.toObject();
94+
}
8795
}
8896

8997
export default LitApi;

0 commit comments

Comments
 (0)