Video by Joel Loh | AI Automations · streamed from YouTube. All rights remain with the creator.
Lesson 32: Real-Time Chat with Supabase Realtime
About this lesson
In this extra video, Joel Loh shows how to implement real-time chat in FlutterFlow apps using Supabase Realtime, so that new messages appear in a conversation the moment they are sent, without anyone needing to refresh the page. It begins with the prerequisites, building on the chat feature created earlier in the series. The video then creates the custom actions that the feature depends on, small pieces of code that use the Supabase client to listen for new messages as they are added to the database. Next, it implements these custom actions in the app, connecting them to the chat page so that the conversation updates automatically whenever a new message arrives. Supabase must also be configured so that changes to the messages are broadcast to the app, and the video walks through the settings needed to make this work. Because real-time features use resources in a different way from ordinary queries, it also explains Supabase Realtime pricing, so that viewers understand the limits and costs to consider as their app grows. Finally, the video covers testing and fixing errors, checking that messages appear instantly between users and working through the problems that commonly come up when setting up real-time updates for the first time. By the end, the app's chat behaves like a modern messaging app, with conversations updating live on every device, completing the photo-sharing app built across the series. Afterwards, read Chapter 32 of the course book, which compares the cost of polling and real-time updates by hand.