Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example usage of the SubscribeAssociationChanges API #415

Open
wants to merge 1 commit into
base: 12-31-start_publishing_events
Choose a base branch
from

Conversation

neekolas
Copy link
Collaborator

@neekolas neekolas commented Jan 8, 2025

TL;DR

Added a new example demonstrating how to consume XMTP's SubscribeAssociationChanges API.

What changed?

  • Added a new example in Go that shows how to subscribe to and process identity association changes
  • Created documentation explaining the identity update stream API's purpose and use cases
  • Fixed the identity service implementation to properly handle stream context cancellation

How to test?

  1. Run the example locally by connecting to localhost:5556
  2. Verify that the stream receives updates when wallet addresses are associated or revoked from inbox IDs
  3. Confirm the output shows proper formatting of timestamps and event details
  4. Test connection to dev/production networks by updating the connection string and adding TLS credentials

Why make this change?

Applications need a way to monitor identity association changes in real-time to:

  • Maintain up-to-date registries of account address to inbox ID mappings
  • Build search functionality based on these mappings
  • Notify users about new wallet associations with their InboxID
  • Support backend services that need to track identity changes across the XMTP network

Copy link
Collaborator Author

neekolas commented Jan 8, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@neekolas neekolas requested a review from nplasterer January 8, 2025 15:40
@neekolas neekolas marked this pull request as ready for review January 8, 2025 15:41
@neekolas neekolas requested review from a team as code owners January 8, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants