@startuml #PaleVioletRed:Write text; fork :Build user message containing text; floating note left: Full process :Serialize User message; :Encrypt user message; :Pack user message; :Build server message containing user packed user message; :Serialize server message; :Encrypt server message; :Pack server message; fork again :Build user message containing text; floating note right: Simplified process with helper functions :ProcessOutbound user message; :Build server message containing user packed user message; :ProcessOutbound server message; end fork #Palegreen:Send to server; @enduml