List Available Chat Rooms in Real-time in Next.js from Fauna

Share this video with your friends

Send Tweet

We can add rooms but our application does not update and display rooms when a room is added. This should happen in real-time.

To fix this we'll add a useEffect that will query for all our rooms and use fauna's client.stream API to ensure that this happens in real-time.