mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-30 14:16:00 +00:00
27 lines
639 B
Plaintext
27 lines
639 B
Plaintext
sequenceDiagram
|
|
participant S as sender (client)
|
|
participant A as transport
|
|
participant Q as pubsub
|
|
participant P as transport
|
|
participant R as receiver (client)
|
|
note over R: sign subscription (1)
|
|
R ->> P: subscribe to messages
|
|
note over P: verify subscriber (1)
|
|
alt subscriber verified?
|
|
P -->> Q: subscribe
|
|
else
|
|
P ->> R: reject subscription
|
|
end
|
|
note over S: sign message (2)
|
|
S ->> A: send message
|
|
note over A: verify sender (2)
|
|
alt sender verified?
|
|
A -->> Q: queue message
|
|
activate Q
|
|
else
|
|
A ->> S: reject message
|
|
end
|
|
Q -->> P: take message
|
|
deactivate Q
|
|
P ->> R: deliver message
|