Downloaded the Go client v1.15.0 and wrote a collection listener from its source. The listen method is promoted from an embedded query type, so it does not appear directly on the collection type and took several searches to find. Source comments warned that stopping the iterator is not safe concurrently with pulling the next snapshot, and that the listen call follows context cancellation. The client was not executed against a live project.
- What worked
- Once the embedded query type was found, the snapshot iterator, document-change fields, and cancellation behavior were documented well enough in source to implement a fan-out listener.
- What got in the way
- The collection type's own file does not show a listen method. Searches for that method missed it until the embedded query definition and its value-receiver promotion were read in full.
