How to read client message?

how to set the settings for the server if i want to read the message of my clients in spark…??