code: def _send(self, message):
          
          if not self._running:
              self._connect()
              self.authenticate()
          message_dumped = json.dumps(message) + self.__CRLF
          try:
              self._socket.send(message_dumped.encode())
          except (socket.timeout, socket.error) as e:
              self.stop()
              raise SocketError('[Connect: %s]: Socket %s' % (self._unique_id, e))
docs: If not running connects socket and
          authenticates. Adds CRLF and sends message
          to Betfair.
  
          :param message: Data to be sent to Betfair.