Add websocat

This commit is contained in:
2025-08-24 00:18:15 +02:00
parent 831327def5
commit c4fb2f6fd6
3 changed files with 6 additions and 1 deletions

4
runner/.env.example Normal file
View File

@@ -0,0 +1,4 @@
# vi: ft=sh
# shellcheck disable=SC2034
WSURL=""

View File

@@ -5,7 +5,7 @@ SCRIPT=$(realpath "$1")
cd -- "$(dirname -- "$SCRIPT")"
exec \
3>&1 \
3> >(tee >(websocat "$WSURL" > /dev/null) >&1) \
2> >(sed -u "s/^/[ERR] /" >&3) \
> >(sed -u "s/^/[INF] /" >&3)

View File

@@ -2,5 +2,6 @@
pkgs.mkShell {
packages = with pkgs; [
go
websocat
];
}