sse_phx_pubsub v1.0.3 SsePhoenixPubsub.Config
Configuration for sse_phx_pubsub
:
:keep_alive
- Optional. Keep-alive interval to send a ping to the client. Default is20_000
(milliseconds).:retry
- Optional. The reconnection time to use when attempting to send the event. Default is2_000
(milliseconds).
Example
Configured defaults with override from environment variables, if present:
config :sse_phx_pubsub,
retry: {:system, "SSE_RETRY_IN_MS", 2_000},
keep_alive: {:system, "SSE_KEEP_ALIVE_IN_MS", 20_000}
Link to this section Summary
Link to this section Functions
Keep alive