<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_message(self, message):
 """ Send a message down the socket. The message is expected to have a `request` attribute that holds the message to be serialized and sent. """

        if self.connected:
            self.send(
                json.dumps(message.request))