I put together a small sequence diagram using mermaid to help visualize this.