Functions§
- cleanup_
socket - Remove socket file if it exists. Best-effort, never panics. Sockets now live in ~/.synaps-cli/run/ (mode 0700), so symlink attacks from other users are not possible. Still refuse symlinks as defense-in-depth.
- listen_
session_ socket - Bind a Unix socket at
socket_path, accept connections, parse incoming events, push toqueue. Runs untilshutdownis set.