aprs.me/lib/aprsme_web/live/map_live
Graham McIntire 94c0f1a48c
Fix real-time packet updates not showing on map
The map wasn't receiving real-time packet updates because:
1. LiveView wasn't subscribed to StreamingPacketsPubSub
2. LiveView wasn't handling {:streaming_packet, packet} messages
3. Packets weren't being broadcast to both PubSub systems

Changes:
- Added StreamingPacketsPubSub subscription with viewport bounds filtering
- Added handler for {:streaming_packet, packet} messages
- Update subscription bounds when map viewport changes
- Properly unsubscribe on LiveView termination
- Also broadcast packets to SpatialPubSub (in addition to StreamingPacketsPubSub)

Now the map only receives packets within its current viewport bounds,
reducing unnecessary data transfer and improving performance.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 13:12:06 -05:00
..
bounds_manager.ex clean up warnings 2025-07-16 08:55:46 -05:00
data_builder.ex clean up warnings 2025-07-16 08:55:46 -05:00
display_manager.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
historical_loader.ex Fix comprehensive crash prevention and add missing RF path station markers 2025-07-28 11:56:00 -05:00
index.ex Fix real-time packet updates not showing on map 2025-07-28 13:12:06 -05:00
map_helpers.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
navigation.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
packet_manager.ex clean up warnings 2025-07-16 08:55:46 -05:00
packet_processor.ex Move Redis PubSub config to runtime initialization 2025-07-26 10:10:55 -05:00
packet_store.ex performance improvements 2025-07-14 16:35:58 -05:00
packet_utils.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
popup_component.ex integrate /:call to main page 2025-07-13 10:36:58 -05:00
rf_path.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
url_params.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
utils.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00