Conditional compilation of interaction with server