Building a realtime chat app with GraphQL Subscriptions
Blog post from Hasura
In this tutorial, learn how to build a real-time group chat application using Hasura GraphQL Engine without writing any backend code. The focus is on data models stored in Postgres rather than full chat functionality. Key points include creating a user signup mutation, updating the last_seen value of users every two seconds, subscribing to new message events and only fetching new messages, sending messages by inserting rows into the messages table, and managing UI typing indicators and an online users list through subscriptions. A live demo is available at https://realtime-chat.demo.hasura.io/.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Real-time | 7 | 1,155 | 322 | 122 | +17% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.