FlagFix
API referenceReferenceRuntime Live

Stream SSE d'invalidation de configuration

Stream `text/event-stream`. N'envoie pas le payload flags. Événement applicatif : - `event: environment_updated` - `id: <configurationVersion>` - `data: {"configurationVersion":12,"checksum":"…","environmentId":"…"}` Fan-out multi-instance via Redis pub/sub `flagfix:env:{environmentId}:config`. Heartbeats en commentaires SSE. Si Redis est down, aucun event live n'est garanti ; le SDK doit poller `/meta`.

Cette page n’a pas encore de traduction française. Le texte anglais fait foi.

GET
/api/v1/runtime/sse

Stream text/event-stream. N'envoie pas le payload flags.

Événement applicatif :

  • event: environment_updated
  • id: <configurationVersion>
  • data: {"configurationVersion":12,"checksum":"…","environmentId":"…"}

Fan-out multi-instance via Redis pub/sub flagfix:env:{environmentId}:config. Heartbeats en commentaires SSE. Si Redis est down, aucun event live n'est garanti ; le SDK doit poller /meta.

Header Parameters

X-FlagFix-Sdk-Key*string

Clé d'environnement complète {prefix}.{secret}. Le serveur en dérive projectId, environmentId et keyType. CLIENT_SDK et SERVER_SDK acceptés selon l'opération.

Response Body

Stream SSE ouvert

response?stringtext/event-stream
Example Request
curl -X GET 'http://localhost:18080/api/v1/runtime/sse' \  -H 'X-FlagFix-Sdk-Key: ff_development_client-sdk.abc123…'
Example Response
": heartbeat\n\nevent: environment_updated\nid: 12\ndata: {\"configurationVersion\":12,\"checksum\":\"a3f1c9\",\"environmentId\":\"019a0000-0000-7000-8000-000000000002\"}\n"

Cette page vous a-t-elle été utile ?