Skip to content

Neighbourhood signal broadcast loopback#568

Merged
jhweir merged 4 commits intodevfrom
feature/nh-signal-broadcast-loopback
Feb 18, 2025
Merged

Neighbourhood signal broadcast loopback#568
jhweir merged 4 commits intodevfrom
feature/nh-signal-broadcast-loopback

Conversation

@lucksus
Copy link
Member

@lucksus lucksus commented Feb 18, 2025

Fixes #567

  1. Added the loopback parameter to the GraphQL mutation definitions in MutationDefinitions.ts
  2. Updated the Rust mutation resolvers in mutation_resolvers.rs to handle the loopback parameter for both neighbourhoodSendBroadcast and neighbourhoodSendBroadcastU
  3. Implemented the loopback functionality in the NeighbourhoodController's send_broadcast method, which now processes the broadcast locally when loopback is enabled
  4. Updated the TypeScript resolver definitions in NeighbourhoodResolver.ts to include the loopback parameter

The implementation ensures that when loopback is enabled:

  1. The broadcast is sent to all connected agents as usual
  2. The broadcast is also processed locally through the signal handler for the same perspective
    This allows the same agent to receive their own broadcasts when needed, which is crucial for multi-device syncing

@jhweir jhweir merged commit 3fe1495 into dev Feb 18, 2025
2 checks passed
@lucksus lucksus deleted the feature/nh-signal-broadcast-loopback branch August 22, 2025 12:01
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.

Request - Modify existing OR an alternate pubsub on NeighbourhoodProxy interface for realtime data syncing

2 participants