FluxyChat

Platform

Fleet

HTTP GPS ingest on the same room bus.

Fleet module

Vehicles POST GPS to the Worker. The room WebSocket fans out server_event fleet.gps_update. Not MQTT.

npx @fluxy-chat/create-fluxy-chat@latest my-fleet --example fleet-panel
curl -X POST "$WORKER/fleet/gps" \
  -H "Authorization: Bearer $FLEET_DEVICE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vehicleId":"veh_1","lat":45.46,"lng":9.18,"roomId":"demo"}'
useChat({
  roomId,
  onServerEvent: (ev) => {
    if (ev.name === "fleet.gps_update") {
      // ev.data.vehicleId, lat, lng
    }
  },
});

Register vehicles with POST /fleet/vehicles (SDK createFleetVehicle). The response includes apiKey (fleet_…) once. Drivers POST GPS with that key; other fleet routes still need a member JWT. Default fan-out room is fleet:{projectId} if roomId is omitted. Cap: 60 GPS points per vehicle per minute.

On this page