SwoffSwoff

Server Push

Full schema for swoff.config.json features.serverPush — every field, its type, default, and description.

features.serverPush

FieldTypeDefaultDescription
enabledbooleanfalseEnable real-time cache invalidation via SSE or WebSocket. Generates swoff/server-push/client.ts.
type"sse" | "websocket""sse"Transport protocol
endpointstring"/api/events"Push endpoint URL
reconnectDelayMsnumber5000Initial reconnect delay on connection loss (exponential backoff, capped at 30s)

On this page