From 09e86c0d1e487bb6a9a2d13b2ebb8db79cd78871 Mon Sep 17 00:00:00 2001 From: "duck.__index" <138041510+NormalDuck@users.noreply.github.com> Date: Thu, 13 Jun 2024 07:42:05 -0700 Subject: [PATCH] docs: added atom field for sync as an example { atoms } -> { atoms: atoms } --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d92304d..e9add7a 100644 --- a/README.md +++ b/README.md @@ -467,7 +467,7 @@ import { sync } from "@rbxts/charm"; import { remotes } from "./remotes"; import * as atoms from "./atoms"; -const server = sync.server({ atoms }); +const server = sync.server({ atoms: atoms }); // Broadcast a state update to a specific player server.connect((player, payload) => { @@ -487,7 +487,7 @@ import { sync } from "@rbxts/charm"; import { remotes } from "./remotes"; import * as atoms from "./atoms"; -const client = sync.client({ atoms }); +const client = sync.client({ atoms: atoms }); // Listen for incoming state changes from the server remotes.syncState.connect((payload) => {