With Hasura, you can create chat apps straight from your data models without the need of any other infrastructure. We have built out a realtime chat app that uses the Streaming Subscriptions feature in Hasura. It fetches the last 10 messages from the messages table and then streams all new messages using the newly added Streaming API.
Table of contents
Create Data Models for Chat AppAdd a monotonic id to the messages modelAdd permission rules to ensure messages can only be read by channel membersTrying out streaming subscriptionsTry out the Full Sample App with Live DemoSort: