UnixSocketEventSource(
self,
path: Path | None = None,
)| Name | Type | Description |
|---|---|---|
path | Path | None | Default: NoneSocket path. When omitted, a per-process path under the runtime or temp directory is used. |
| Name | Type |
|---|---|
| path | Path | None |
Line-delimited JSON event source over a local Unix domain socket.
The listener creates its parent directory with mode 0o700 and binds the
socket inside it under a transient umask(0o077) so the socket inherits
0o600 from the moment of bind(). Stale sockets at the configured path
are removed on start, but only after a stat confirms the path is a
socket — a regular file or directory at that path is left untouched and
causes start to fail loudly.