Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OnSocketMessage<T>

Every time the socket sends an update, this will be called with the received GraphQL document. For example:

{
  "data": {
    "subscribeToMessages": {
      "__typename": "NewTextMessage",
      "chatId": 3,
      "message": "Hi!"
    }
  }
}

Type parameters

  • T

Hierarchy

  • OnSocketMessage

Callable

  • Every time the socket sends an update, this will be called with the received GraphQL document. For example:

    {
      "data": {
        "subscribeToMessages": {
          "__typename": "NewTextMessage",
          "chatId": 3,
          "message": "Hi!"
        }
      }
    }
    

    Parameters

    Returns void

Generated using TypeDoc