first commit
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Record a short SSE sample from a running HoneyPeer master.
|
||||
set -euo pipefail
|
||||
URL="${1:-https://viz.honeypeer.com}"
|
||||
OUT="${2:-tests/fixtures/sse-sample.txt}"
|
||||
mkdir -p "$(dirname "$OUT")"
|
||||
echo "Recording from ${URL}/api/public/viz/stream → $OUT (Ctrl+C to stop)"
|
||||
curl -N -sS -H 'Accept: text/event-stream' "${URL}/api/public/viz/stream" | head -n 200 > "$OUT"
|
||||
echo "Wrote $(wc -l < "$OUT") lines"
|
||||
Reference in New Issue
Block a user