How to add real time chat functionality using hypi

i want to add real time chat functionality in my app(like whatsapp). How to do this ??

You can use a GraphQL subscription. Subscriptions require a WebSocket connection.
The endpoint is the same wss://api.hypi.app (but with the wss prefix)

subscription {
  subscribe {
    Message {
      text
    }
  }
}