Basic chat server / client with netcat

Install netcat

pkg install nmap

On server start daemon

ncat --ssl --chat -l port &

On client run

ncat --ssl address port

Broker server

ncat -k -l -p xxx --broker

Netcat client script

echo "HELLO" | nc ip port -q 1