1
0
This repository has been archived on 2026-06-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-06-30 00:30:34 +02:00

21 lines
588 B
Bash

#!/bin/bash
# Set terminal title (wird von vielen Terminal-Emulatoren unterstützt)
echo -ne "\033]0;NodeJS WebSocket Test Server\007"
# Get run mode
read -p "Enter mode (custom / twitch) [default: custom]: " mode
mode=${mode:-custom}
# Get target information
read -p "Enter target (custom url / twitch channel): " target
# Falls target leer ist und der Modus custom ist, nimm die Default-URL
if [ -z "$target" ]; then
if [ "$mode" == "custom" ]; then
target="wss://echo.websocket.org"
fi
fi
# Execute the script with given information
node index.js "$mode" "$target"