docs
docs copied to clipboard
Build flutter real time multi user chat app
Full tutorial of how to Build Flutter Application with real time users chat
@MahmoudTark is attempting to deploy a commit to the Directus Team on Vercel.
A member of the Team first needs to authorize it.
Hi @MahmoudTark! Thanks for putting this tutorial together :)
Unfortunately I don't think this is quite ready to merge as-is. My main concerns are:
- sendMessage and loadMessages are left as stubs with "implement here" comments. A reader following along won't end up with a working app
- The WebSocket subscription will cause duplicate messages: messages are added optimistically and received back via the subscription, without deduplication
- Code blocks are missing language tags (dart, yaml)
- KDirectusApiUrl is referenced but never defined, so could cause broken setups if followed exactly
- The auth setup is contradictory (Public policy with full access, but also token-based WebSocket auth)
I'll close this for now, but would love to see a revised version that has the full working implementation. The Flutter + Realtime combo is a great tutorial topic! 🫶