Server-Sent Events client for real-time camera notifications. Works in both Node.js and browsers.Documentation Index
Fetch the complete documentation index at: https://crsdk.app/llms.txt
Use this file to discover all available pages before exploring further.
Events
| Event | Payload | When |
|---|---|---|
connected | { cameraId } | Camera connected |
disconnected | { error } | Camera disconnected |
propertyChanged | { codes } | Settings changed |
warning | { code } | Camera warning |
afStatus | { state } | AF state changed |
downloadComplete | { filename } | File saved to host |
transferProgress | { percent, filename } | Transfer progress |
error | { code } | SSE error |
close | — | Stream closed by manager |
Methods
| Method | Description |
|---|---|
on(event, callback) | Subscribe to events |
off(event, callback?) | Unsubscribe |
once(event, callback) | One-shot listener — auto-removed after first fire |
close() | Close SSE connection |
connected | Whether SSE is connected (read-only) |

