#!/bin/bash -e # # Requirements: expect # export NAME=tls export MANUAL=true # shellcheck source=examples/verify-common.sh . "$(dirname "${BASH_SOURCE[0]}")/../verify-common.sh" interact_ws () { local port="$1" \ protocol="$2" \ backend="$3" \ insecure="" if [ "$protocol" == "wss" ]; then insecure="--insecure" fi expect < ws" interact_ws 10000 ws ws run_log "Interact with web socket wss -> wss" interact_ws 20000 wss wss run_log "Interact with web socket wss passthrough" interact_ws 30000 wss wss