Skip to content

feat: add Unix socket connection support using unix:// URL format#23

Open
lightrabbit wants to merge 1 commit intobramanda48:masterfrom
lightrabbit:master
Open

feat: add Unix socket connection support using unix:// URL format#23
lightrabbit wants to merge 1 commit intobramanda48:masterfrom
lightrabbit:master

Conversation

@lightrabbit
Copy link
Copy Markdown

@lightrabbit lightrabbit commented Mar 22, 2026

Summary

  • Add Unix socket connection support using the unix:// URL format
  • Unify URL parsing logic by converting to URL objects first, then processing, to avoid code redundancy
  • Update README documentation to explain Unix socket usage

Usage

// Connect via Unix socket
const client = new SupervisordClient("unix:///tmp/supervisor.sock");

// With authentication
const client = new SupervisordClient("unix:///tmp/supervisor.sock", {
  username: "user",
  password: "password",
});

Notes

  • Unix socket support is available on Linux and macOS only
  • URL format is consistent with supervisorctl's serverurl configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant