You might want to look at the functions on https://reference.wolfram.com/language/guide/Channel-BasedCommunication.html