Skip to content

feat: add topic extension - #182

Open
huynguyengl99 wants to merge 1 commit into
asyncapi:masterfrom
huynguyengl99:add-topic-extension
Open

feat: add topic extension#182
huynguyengl99 wants to merge 1 commit into
asyncapi:masterfrom
huynguyengl99:add-topic-extension

Conversation

@huynguyengl99

Copy link
Copy Markdown

Adds the topic extension.

Multiplexed transports carry many logical streams over one connection, which AsyncAPI models as several channels sharing an address - the Kraken example in the spec repository does exactly this, with seven channels at /. There is currently no way to express which stream a channel is, or how a client addresses it, so that information lives in prose. This extension carries it.

parameters does not cover the case: the specification permits it only when the address contains Channel Address Expressions, and here the address is the connection rather than the topic.

Implemented and in use in chanx, which generates it for topic-based WebSocket routes and consumes it when generating typed clients.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant