Choose a delivery mode
- use SSE when the consumer stays connected inside your app or worker
- use webhooks when you need HTTP POST delivery, retries, or decoupled work
spaceservice- optional
pathPrefix - optional
abilities
Subscribe to live writes
subscribe() is live-only. It does not replay missed events after reconnect.
Register a webhook
X-TinyCloud-Signature.
Verify deliveries before parsing them
The signature issha256=<hex HMAC> over the exact request-body bytes. Capture
the raw body and compare the HMAC in constant time before accepting the event.
For example, with Express:
Use
X-TinyCloud-Delivery-Id as an idempotency key for delivery attempts and
X-TinyCloud-Event-Id for the underlying event.
Inspect and remove hooks
Delivery semantics
- SSE is best-effort live delivery only
- webhooks are durable and at-least-once
- duplicates are possible for webhooks, so receivers must be idempotent
pathPrefix by trimming surrounding slashes and matches
the exact path or descendants beneath it.
