Client code for sending a notification message to a server. Stripped out 'echo' code.