From ae5c77d05ecf8239b8a17c706ded37b4c5ce8e54 Mon Sep 17 00:00:00 2001 From: Roj Date: Thu, 31 Aug 2023 15:28:00 +0300 Subject: [PATCH] Fix examples --- src/hello-world/deno.md | 4 ++-- src/hello-world/node-js.md | 4 ++-- src/hello-world/vanilla-javascript.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hello-world/deno.md b/src/hello-world/deno.md index 8ef6015..0414826 100644 --- a/src/hello-world/deno.md +++ b/src/hello-world/deno.md @@ -35,7 +35,7 @@ to start since we don’t have a persistency layer for the sake of staying simpl const client = new Client(); console.log("Starting client..."); -await client.start(); +await client.connect(); console.log("Client started."); ``` @@ -75,7 +75,7 @@ import { Client, functions } from "https://deno.land/x/mtkruto/mod.ts"; const client = new Client(); console.log("Starting client..."); -await client.start(); +await client.connect(); console.log("Client started."); const before = Date.now(); diff --git a/src/hello-world/node-js.md b/src/hello-world/node-js.md index a11ea3a..3c3e2f3 100644 --- a/src/hello-world/node-js.md +++ b/src/hello-world/node-js.md @@ -44,7 +44,7 @@ to start since we don’t have a persistency layer for the sake of staying simpl const client = new Client(); console.log("Starting client..."); -await client.start(); +await client.connect(); console.log("Client started."); ``` @@ -84,7 +84,7 @@ const { Client, functions } = require("@mtkruto/node"); const client = new Client(); console.log("Starting client..."); -await client.start(); +await client.connect(); console.log("Client started."); const before = Date.now(); diff --git a/src/hello-world/vanilla-javascript.md b/src/hello-world/vanilla-javascript.md index 94cde36..d0c48ea 100644 --- a/src/hello-world/vanilla-javascript.md +++ b/src/hello-world/vanilla-javascript.md @@ -40,7 +40,7 @@ Extend the contents of the `