Allow Use client from client-resources from NodeJS (#545)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2021-12-06 17:57:35 +01:00
committed by GitHub
parent 420fc93967
commit beecb23c79
16 changed files with 207 additions and 93 deletions
+4
View File
@@ -78,6 +78,10 @@ class ModelClient implements Client {
transactions.push({ tx, result })
return result
}
async close (): Promise<void> {
await this.client.close()
}
}
export async function Hook (client: Client): Promise<Client> {
console.info('devmodel# Client HOOKED by DevModel')