itsthesteve / react-aim

AOL AIM style chat in Deno because why not.
0 stars 0 forks source link

Track users in the current room #2

Open itsthesteve opened 3 months ago

itsthesteve commented 3 months ago

Right now the sidebar is just mock data. Depends on #1

Something along the lines of:

// When a room is joined, notify a table of the room and the user ID
kv.set(["room_joined", roomId, userId])

// listen for this and grab a list, maybe prefixed with `room_joined` and `room_id`...
for await (const [roomId] of db.watch([["room_joined", roomId]]) {
  ...
}
itsthesteve commented 2 days ago

This was completed but regressed and isn't working correctly.