kernel-handshake-client/dist/index.js

12 lines
419 B
JavaScript
Raw Normal View History

2023-02-19 19:42:51 +00:00
import { Client, factory } from "@lumeweb/libkernel-universal";
2023-04-04 12:57:29 +00:00
const MODULE = "AABSrc3pZHhTmpWfNV8YxNT981CVKDZmN37BII4F27wbxg";
2023-02-19 19:42:51 +00:00
export class HandshakeClient extends Client {
async ready() {
return this.callModuleReturn("ready");
}
async query(method, params) {
return this.callModuleReturn("query", { method, params });
}
}
export const createClient = factory(HandshakeClient, MODULE);