API and Client integration
WARNING
The API is not stable. Breaking changes are common.
The daemon exposes HTTP snapshots and durable history queries plus a SignalR hub for ordered live-state deltas and compact activity.
.NET clients
Use SockseekApiClient for HTTP requests and SockseekLiveClient for live updates.
OpenAPI
OpenAPI spec is in docs/openapi.json (auto-generated during build). The same document is also served by a running daemon at GET /api/openapi.json.
If you are not using .NET, use the OpenAPI document with your viewer or client generator of choice.
Local mock daemon
For client development, start from mock files instead of a real Soulseek account:
bash
python scripts/create_mock_music_library.py -o /tmp/sockseek-fixture
sockseek daemon --web-password-file /path/to/test-password --allow-http-auth \
--mock-files-dir /tmp/sockseek-fixture/mock-library \
--mock-files-no-read-tags \
--mock-files-slow \
--server-port 5030 \
-o /tmp/sockseek-outClient source to read
Sockseek.Api/Client/SockseekApiClient.cs: the .NET client, and the most convenient reference for supported request flows.Sockseek.Api/Client/SockseekLiveClient.cs: the SignalR subscription, with buffering and recovery.Sockseek.Api/Client/DaemonClientStore.cs: a store that applies snapshots and live deltas, for clients that keep state.Sockseek.Api/Contracts/: every request and response type.Sockseek.Cli/Backends/RemoteCliBackend.cs: a real client, including how it subscribes to live updates.Sockseek.Cli.Tests/RemoteCliBackendTests.cs: runnable examples of remote API flows.