Overview
Flutter apps should follow the same pattern as other frontend clients:
- your backend issues a short-lived PulseGrid token
- the app uses that token for websocket connection
Setup
In Flutter, use your normal websocket package and connect with the client token query parameter.
Code example
Pseudo-flow:
1. Your Flutter app calls your backend
2. Your backend returns a PulseGrid client token
3. Flutter opens websocket:
wss://www.altrancconnect.com/ws/channels/<project-id>/<channel-slug>/?token=<client-token>
4. Flutter sends JSON messages with:
- event
- data
- meta
Notes
You can later write a dedicated Flutter package if needed, but the main auth and websocket design already supports Flutter cleanly.
Use wss:// for production AltraNC Connect connections.