Add functions for sending messages to client