Sinks
Sinks are destinations for join and window results. LiteJoin evaluates your SQL queries and forwards matching results to one or more configured sinks.HTTP Webhook
Sends results as JSONPOST requests to a URL.
| Field | Type | Default | Description |
|---|---|---|---|
url | string | required | Webhook URL to POST results to. |
timeout | duration | 30s | Request timeout. |
Kafka
Produces results as messages to a Kafka topic.| Field | Type | Default | Description |
|---|---|---|---|
brokers | string | required | Comma-separated broker addresses. |
topic | string | required | Target Kafka topic. |
SSE (Server-Sent Events)
Streams results to browser clients via Server-Sent Events. Ideal for real-time dashboards and UIs.| Field | Type | Default | Description |
|---|---|---|---|
addr | string | required | Address to listen on. |
Endpoints
The SSE sink exposes three HTTP endpoints:| Endpoint | Method | Description |
|---|---|---|
/subscribe | GET | Opens an SSE stream. Use ?join=name to filter by join or ?join=* for all. |
/snapshot | GET | Returns a JSON snapshot of current results. See Snapshot API. |
/health | GET | Health check — returns {"status": "ok"}. |
Browser Example
Replay on Connect
Add?replay=true to receive a snapshot of current results as SSE events before switching to live streaming:
"_replay": true so your client can distinguish initial state from live updates.
SQLite
Writes results to a local SQLite database for querying by external apps.| Field | Type | Default | Description |
|---|---|---|---|
path | string | required | Path to the SQLite database file. |