Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 2s
27 lines
745 B
Markdown
27 lines
745 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:
|
|
- `SpatialPubSub` — bounded or explicitly unbounded delivery
|
|
- Per-callsign Phoenix PubSub topics
|
|
|
|
Packets are formatted into a mobile-optimized JSON structure and pushed to connected clients.
|