mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
npm rpc server: fix example (#5580)
This commit is contained in:
@@ -20,7 +20,9 @@ import { C } from "@deltachat/jsonrpc-client";
|
|||||||
async function main() {
|
async function main() {
|
||||||
const dc = await startDeltaChat("deltachat-data");
|
const dc = await startDeltaChat("deltachat-data");
|
||||||
console.log(await dc.rpc.getSystemInfo());
|
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).
|
For a more complete example refer to https://github.com/deltachat-bot/echo/pull/69/files (TODO change link when pr is merged).
|
||||||
|
|||||||
Reference in New Issue
Block a user