npm rpc server: fix example (#5580)

This commit is contained in:
Simon Laux
2024-05-18 19:58:44 +02:00
committed by GitHub
parent e66b9de922
commit a971ad1f85

View File

@@ -20,7 +20,9 @@ import { C } from "@deltachat/jsonrpc-client";
async function main() {
const dc = await startDeltaChat("deltachat-data");
console.log(await dc.rpc.getSystemInfo());
dc.close()
}
main()
```
For a more complete example refer to https://github.com/deltachat-bot/echo/pull/69/files (TODO change link when pr is merged).