To run the test WebSocket client on your machine, make sure you have the following packages installed:
$ sudo yum install -y nodejs
$ npm install websocket
$ ./deploy.sh
$ ./run-cli.sh
WebSocket Client Connected
echo-protocol Connection Closed
real 0m5.611s
user 0m0.121s
sys 0m0.016s
Note: default tunnel timeout is used (5s
)
$ oc apply -f ./unsecured-route.yaml
$ ./run-cli.sh
WebSocket Client Connected
echo-protocol Connection Closed
real 0m15.387s
user 0m0.103s
sys 0m0.022
Note: route's tunnel timeout is used (15s
)