ChatApp Realtime API 0.8.0

AsyncAPI schema for Socket.IO events used by ChatApp.

  • Publish = event sent by the client.
  • Subscribe = event received by the client.

Servers

  • localhost:4000wslocal

    Local backend server (Socket.IO endpoint /socket.io).

    Security:
    • HTTP
      • Scheme: bearer
      • Bearer format: JWT

Operations

  • PUB join_chat

    Client joins a chat room to receive realtime chat events.

    Operation IDpublishJoinChat

    Available only on servers:

    Accepts the following message:

    Join/Leave/Typing Request
    oneOf

    Examples

  • PUB leave_chat

    Client leaves a chat room.

    Operation IDpublishLeaveChat

    Available only on servers:

    Accepts the following message:

    Join/Leave/Typing Request
    oneOf

    Examples

  • PUB typing_start

    Client notifies it started typing. Server broadcasts to other members in the same chat room.

    Operation IDpublishTypingStart

    Available only on servers:

    Accepts the following message:

    Join/Leave/Typing Request
    oneOf

    Examples

  • SUB typing_start

    Client notifies it started typing. Server broadcasts to other members in the same chat room.

    Operation IDsubscribeTypingStart

    Available only on servers:

    Accepts the following message:

    object

    Examples

  • PUB typing_end

    Client notifies it stopped typing. Server broadcasts to other members in the same chat room.

    Operation IDpublishTypingEnd

    Available only on servers:

    Accepts the following message:

    Join/Leave/Typing Request
    oneOf

    Examples

  • SUB typing_end

    Client notifies it stopped typing. Server broadcasts to other members in the same chat room.

    Operation IDsubscribeTypingEnd

    Available only on servers:

    Accepts the following message:

    object

    Examples

  • SUB new_message

    New message created in a chat where the user participates.

    Operation IDsubscribeNewMessage

    Available only on servers:

    Accepts the following message:

    object

    Examples

  • SUB chat_updated

    Sidebar chat summary update (last message + unread count).

    Operation IDsubscribeChatUpdated

    Available only on servers:

    Accepts the following message:

    object

    Examples

  • SUB chat_updated_info

    Full chat object update for active views.

    Operation IDsubscribeChatUpdatedInfo

    Available only on servers:

    Accepts the following message:

    object

    Examples

  • SUB new_chat

    User has been added to a newly created chat.

    Operation IDsubscribeNewChat

    Available only on servers:

    Accepts the following message:

    object

    Examples

  • SUB chat_deleted

    Chat has been deleted.

    Operation IDsubscribeChatDeleted

    Available only on servers:

    Accepts the following message:

    allOf

    Deleted chat ID.

    Examples

  • SUB user_status

    Presence update for a related user.

    Operation IDsubscribeUserStatus

    Available only on servers:

    Accepts the following message:

    object

    Examples

Messages

Schemas

  • string

    Chat ID.

  • object
  • oneOf
  • object
  • object
  • allOf

    Deleted chat ID.

  • object
  • object
  • object
  • object
  • object
  • object