There's nothing much to explain about it
It just pushes the message into Ethereum test network , in my case I have used rinkeby you can choose whichever suits you. One more thing you need Infura API which gives us the ability to access a node that is hosted on the rinkeby network, it is like a portal beyond web3