Skip to content

Commit

Permalink
fix sse.jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitk-me committed Feb 27, 2025
1 parent f2a124d commit 10eda96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sse.jwt/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ JWT_TOKEN=$(docker run -i --rm \
--payload "scope=proxy:stream" \
--secret @/private.pem | tr -d '\r\n')

OUTPUT=$(timeout 5s curl --cacert test-ca.crt --no-buffer -N "$STREAM_URL?access_token=${JWT_TOKEN}" &
OUTPUT=$(timeout 2s curl --cacert test-ca.crt --no-buffer -N "$STREAM_URL?access_token=${JWT_TOKEN}" &
SUB_PID=$!
sleep 1
echo '{ "data": "'"$MESSAGE"'" }' | nc -c localhost $NC_PORT
echo '{ "data": "'"$MESSAGE"'" }' | nc localhost $NC_PORT
wait $SUB_PID
)
Expand Down

0 comments on commit 10eda96

Please sign in to comment.