From 7ced8694c4463da59593f9469390bd720114c86f Mon Sep 17 00:00:00 2001 From: Timo Bechtel Date: Thu, 13 Jul 2023 17:53:42 +0200 Subject: [PATCH] docs(docs): add note about .connect() --- apps/docs/docs/guide/client.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/docs/docs/guide/client.md b/apps/docs/docs/guide/client.md index 2b604f0..90f7810 100644 --- a/apps/docs/docs/guide/client.md +++ b/apps/docs/docs/guide/client.md @@ -48,6 +48,10 @@ Connects to the server. `url` is optional and defaults to the domain & port the db.connect('ws://localhost:8080'); ``` +:::note Side note +You do not need to wait for the connection to finish before updating any data. SocketDB will handle this for you. Just make sure to call `connect` once before you try to update any data. +::: + ## get `get: (path: string) => ChainReference;`