def send_message(self, message):

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

        prepped_message = message + '\n'

        try:
            self.client_socket.send(prepped_message)

        except IOError:
            # 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)
Return associated connection class.
dataset/ETHPy150Open missionpinball/mpf/mpf/plugins/socket_events.py/SocketClient.send_message--crossover with--dataset/ETHPy150Open mrjoes/tornadio/tornadio/router.py/SocketRouterBase.connection