sockopen radio <here youre adress> <here youre port>
Should be:
if ($sock(radio)) sockclose $v1
sockopen radio <here youre adress> <here youre port>
Cheiron, I haven't tried this script, but try adding this under the on sockopen line:
if ($sockerr) echo -a Error: $sock($sockname).wsmsg
And Foutjuh, $chan is $null in an alias btw so you can't set/use that var.