aprs.me/docs/web/channels.md

28 lines
769 B
Markdown

# Mobile WebSocket Channel
## Overview
Real-time packet streaming for iOS/Android mobile applications.
**Socket:** `MobileUserSocket` (`/mobile`, WebSocket only)
**Channel:** `MobileChannel`
## Connection
Mobile clients connect via WebSocket to `/mobile`:
```
ws://host/mobile/websocket?vsn=2.0.0
```
## Protocol
See [mobile-api.md](../mobile-api.md) for the complete message format and protocol specification.
## Architecture
The mobile channel receives real-time packet broadcasts from the same PubSub sources as the web LiveView clients:
- `StreamingPacketsPubSub` — bounds-filtered
- `SpatialPubSub` — viewport-filtered
- Per-callsign Phoenix PubSub topics
Packets are formatted into a mobile-optimized JSON structure and pushed to connected clients.