Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
roj1512 committed May 17, 2024
1 parent 560597f commit ae58f51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const { Client, getRandomId } = require("@mtkruto/node"); // npm install @mtkrut
const client = new Client();
await client.connect();

const pong = await client.api.ping({ ping_id: getRandomId() });
const pong = await client.invoke({ _: "ping", ping_id: getRandomId() });
console.debug(pong);
```

Expand All @@ -41,7 +41,7 @@ import { Client, getRandomId } from "https://deno.land/x/mtkruto/mod.ts";
const client = new Client();
await client.connect();

const pong = await client.api.ping({ ping_id: getRandomId() });
const pong = await client.invoke({ _: "ping", ping_id: getRandomId() });
console.debug(pong);
```

Expand All @@ -54,7 +54,7 @@ console.debug(pong);
const client = new Client();
await client.connect();
const pong = await client.api.ping({ ping_id: getRandomId() });
const pong = await client.invoke({ _: "ping", ping_id: getRandomId() });
console.debug(pong);
</script>
```
Expand All @@ -69,7 +69,7 @@ import { Client, getRandomId } from "@mtkruto/mtkruto"; // bunx jsr i @mtkruto/m
const client = new Client();
await client.connect();

const pong = await client.api.ping({ ping_id: getRandomId() });
const pong = await client.invoke({ _: "ping", ping_id: getRandomId() });
console.debug(pong);
```

Expand Down

0 comments on commit ae58f51

Please sign in to comment.