def send_message(self, message):
        """Sends a message to the remote socket host.

        Args:
            message: String of the message to send.
        """

        self.log.info("SOCKET SENDING: %s", message)

        prepped_message = message + '\n'

        try:
            self.client_socket.send(prepped_message)

        except __HOLE__:
            # maybe we got disconnected? Attempt to connect and send.
            self.setup_client(self.server_name, self.server_port)

            try:
                self.client_socket.send(prepped_message)
            except:
                self.log.error('Unable to send %s to remote socket server',
                               prepped_message)
dataset/ETHPy150Open missionpinball/mpf/mpf/plugins/socket_events.py/SocketClient.send_message