Chris Nicholas @chrisnicholas.dev · May 27

2️⃣ On the front end, you join a multiplayer room. After doing so, check the `useOthers` hook to see which other users and agents are currently connected. The simplest use case is creating a live avatar stack, like this. The AI's avatar appears after `setPresence` is called.

1 likes 1 replies

?

Replies

Chris Nicholas · May 27

3️⃣ To show more complex, like the highlight in the video, lets write a selector `useOthers`. This code will check if the AI user is currently editing the current field. If it is editing it, it draws a box around the `children`.