Tether and Charm examples
I'm working on a Roblox-ts project and want to integrate Tether for networking (message-based with type validation) and Charm for state management (atomic/immutable atoms). My goal is to handle client-server interactions like:
Broadcasting updates to all clients (e.g., a player sends an AFK request to the server, which updates a shared atom for everyone to see the status),
..or sending targeted updates to individual clients (e.g., a player clicks a UI button, sends a request to the server to increment a counter, and the server responds only to that client with the updated value in their private atom).
I know some of this could be handled locally, but I need server validation and sync. How would I set this up with Tether messages and Charm atoms/observers? Are there examples or best practices? Is this a solid approach, or are there better libraries/alternatives for typed networking and reactive state in Roblox-ts?
3 Replies
:yeah:
Thank you so much for forwarding this, I'm in love with that given example