More options for websocat.

tmp
Philippe Pittoli 2023-05-27 22:11:20 +02:00
parent 29ece121aa
commit 556bdb58dd
1 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,12 @@
WS_SERVICE ?= 127.0.0.1:8080 WS_PORT ?= 8080
WS_SERVICE ?= 127.0.0.1:$(WS_PORT)
WS_TARGET_SERVICE ?= pong
WS_TARGET ?= unix:/tmp/.libipc-run/$(WS_TARGET_SERVICE)
init-websocket-tcpd: init-websocket-tcpd:
@# '-b' binary, '-E' quit on end-of-file, 'ws-l' websocket URI to listen @# '-b' binary, '-E' quit on end-of-file, 'ws-l' websocket URI to listen
@# each connection is redirected to last parameter @# each connection is redirected to last parameter
websocat -b -E ws-l:$(WS_SERVICE) unix:/tmp/.libipc-run/pong websocat -b -E ws-l:$(WS_SERVICE) $(WS_TARGET)
init-websocket-client: init-websocket-client:
@# websocat -b -E tcp-l:127.0.0.1:9000 ws://127.0.0.1:9999 @# websocat -b -E tcp-l:127.0.0.1:9000 ws://127.0.0.1:9999