Your best bet would be udp sockets, open a udp listen and have a sockread event for that socket
on *:sockread:YOURSOCKETNAME: {
sockread %tmp
echo -a %tmp
}