How can i use messaging service to connect two servers?

Is it possible to pick two random servers and transmit information between them?

For example: I find server one, and server two. There is a part in each server, if either server clicks the part, it increases in size a little bit on BOTH ends.

Would this be possible?