feat: Use websocket for status messages (#1051)

This commit is contained in:
Kroese
2025-10-08 21:28:26 +02:00
committed by GitHub
parent 554f3295cb
commit d190b3ba87
13 changed files with 311 additions and 191 deletions

11
src/socket.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -Eeuo pipefail
path="/run/shm/msg.html"
inotifywait -m "$path" |
while read -r fp event fn; do
case "${event,,}" in
"modify" ) echo -n "s: " && cat "$path" ;;
esac
done