packages feed

asyncapi3-1.0.0.0: reference/examples/social-media/frontend/asyncapi.yaml

asyncapi: 3.1.0
info:
  title: Website WebSocket Client
  version: 1.0.0
servers:
  websiteWebSocketServer:
    $ref: '../common/servers.yaml#/websiteWebSocketServer'
channels:
  likeComment:
    address: like/comment
    messages:
      likeComment:
        $ref: '../common/messages.yaml#/likeComment'
    description: Notify the backend that a comment has been liked.
  updateCommentLike:
    address: update/comment/likes
    messages:
      updateCommentLikes:
        $ref: '../common/messages.yaml#/updateCommentLikes'
    description: Update the UI when the comment likes count is updated.
operations:
  sendLikeComment:
    action: send
    channel:
      $ref: '#/channels/likeComment'
    messages:
      - $ref: '#/channels/likeComment/messages/likeComment'
  receiveUpdateCommentLiked:
    action: receive
    channel:
      $ref: '#/channels/updateCommentLike'
    messages:
      - $ref: '#/channels/updateCommentLike/messages/updateCommentLikes'