Implmeneted a sendMessage helper function to the network manager