ServerManager + CameraClient + EventStream workflow — one class handles binary management, camera discovery, connection lifecycle, SSE events, and reconnection.
Server (Node.js)
Import fromcamera-remote-web-api/server. This variant spawns and manages the native binary.
Browser
Import fromcamera-remote-web-api (the default export). Connects to an already-running server — no binary management.
manager.client is a full CameraClient instance — use it for all REST calls (properties, actions, live view, SD card). See Properties & Actions.Options
| Option | Default | Description |
|---|---|---|
port | 8080 | Server port (server only) |
autoPort | false | Find next available port if busy (server only) |
binaryPath | auto-detected | Explicit binary path (server only, required in Next.js) |
baseUrl | http://localhost:8080 | Server URL (browser only) |
autoConnect | true | Connect cameras automatically on discovery |
connectionMode | 'remote' | Default connection mode for auto-connect |
autoReconnect | true | Reconnect on unexpected disconnect |
maxReconnectAttempts | 5 | Max reconnect attempts before giving up |
pollInterval | 5000 | Camera discovery polling interval (ms) |
Connection Modes
The connection mode determines what operations are available on a connected camera.| Mode | Description |
|---|---|
remote | Full camera control. Photos auto-transfer to host PC. |
remote-transfer | Full camera control + explicit SD card file download. |
contents | SD card browsing and file download only — no shooting or settings. |
Choosing a mode
I want to shoot and auto-save photos to my computer
I want to shoot and auto-save photos to my computer
Use
remote. Set still-image-store-destination to 0x1 (Host PC) or 0x3 (Both) for auto-transfer. Listen for downloadComplete events to know when files are saved.I want to shoot AND browse the SD card
I want to shoot AND browse the SD card
Use
remote-transfer. You get full shooting control plus explicit file listing and download from the SD card. This is the most flexible mode.I only need to download files from the SD card
I only need to download files from the SD card
Use
contents. No shooting or settings control — just file browsing and download.Lifecycle
Server-only methods
These are only available on the server variant (camera-remote-web-api/server):
Camera Access
Manual Connection Control
For full manual control over connection lifecycle — connecting specific cameras, managing state transitions, and handling reconnection yourself — use the stateful API classes directly instead of CameraManager.Stateful API Access
Direct access to CameraClient, EventStream, and ServerManager without CameraManager automation

