Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit bca8b81

Browse files
timonbackstavshamir
authored andcommitted
feat: Document publish/subscribe semantics
1 parent 359a880 commit bca8b81

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/app/channels/channels.component.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
padding: 8px;
55
font-size: small;
66
font-weight: bold;
7+
display: inline-block;
78
}
89

910
.subscribe-badge {

src/app/channels/channels.component.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
<h1>Channels</h1>
2+
3+
<a href="https://www.asyncapi.com/blog/publish-subscribe-semantics" target="_blank">Semantics of publish and subscribe:</a>
4+
<ul>
5+
<li>
6+
<span class="badge publish-badge">
7+
publish
8+
<i class="fa fa-arrow-circle-down"></i>
9+
</span>
10+
means publish an event to the channel and this application will receive it
11+
</li>
12+
<li>
13+
<span class="badge subscribe-badge">
14+
subscribe
15+
<i class="fa fa-arrow-circle-up"></i>
16+
</span>
17+
means subscribe to this channel to receive events published by this application
18+
</li>
19+
</ul>
20+
221
<mat-accordion>
322
<mat-expansion-panel *ngFor="let channel of channels" [id]="channel.anchorIdentifier" [expanded]="selectedChannel == channel.anchorIdentifier" (opened)="this.setChannelSelection(channel)">
423
<mat-expansion-panel-header>

0 commit comments

Comments
 (0)