mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-27 08:35:58 +00:00
a78dd33848
* rename edge-messaging protocol related files * rename edge-messaging protocol to simplex messaging protocol * adjust wordings for simplex connections
27 lines
633 B
Plaintext
27 lines
633 B
Plaintext
sequenceDiagram
|
|
participant S as sender (client)
|
|
participant A as API
|
|
participant Q as pubsub
|
|
participant P as publisher
|
|
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
|