Server Side Swift: basic Client-Server communication example for iOS and Android

This is a repost of a Q&A pair I wrote on Stack Overflow.