Skip to content

Instantly share code, notes, and snippets.

@mikeyny
Created January 27, 2023 10:25
Show Gist options
  • Save mikeyny/2ab889716486944ff1eba999b4108190 to your computer and use it in GitHub Desktop.
Save mikeyny/2ab889716486944ff1eba999b4108190 to your computer and use it in GitHub Desktop.
AsyncAPI Chat Application
asyncapi: 2.5.0
info:
title: Chat Application
version: 1.0.0
servers:
testing:
url: test.mosquitto.org:1883
protocol: mqtt
description: Test broker
channels:
chat:
publish:
operationId: onMessageReceieved
message:
name: text
payload:
type: string
subscribe:
operationId: sendMessage
message:
name: text
payload:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment