Skip to content

Commit

Permalink
use websocat
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitk-me committed Feb 28, 2025
1 parent f768d8c commit 1069c4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ws.echo/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ services:
- ./zilla.yaml:/etc/zilla/zilla.yaml
command: start -v -e

wscat:
image: monotykamary/wscat
websocat:
image: solsson/websocat
entrypoint: ["/bin/sh", "-c"]
command: ["while true; do sleep 3600; done"]

Expand Down
2 changes: 1 addition & 1 deletion ws.echo/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo INPUT="$INPUT"
echo EXPECTED="$EXPECTED"

# WHEN
OUTPUT=$(docker compose -p zilla-ws-echo exec -T wscat wscat -w 5 -c ws://zilla:7114/ -s echo -x "$INPUT")
OUTPUT=$(echo "Hello, world" | docker compose -p zilla-ws-echo exec -T websocat websocat --protocol echo ws://zilla:7114/)
RESULT=$?
echo RESULT="$RESULT"
# THEN
Expand Down

0 comments on commit 1069c4d

Please sign in to comment.