code: def send(self, data):
          
          self.logger.debug('Send data: {}'.format(data))
  
          if not self.connected:
              self.logger.warning('Connection not established. Return...')
              return
  
          self.websocket.send(json.dumps(data))
docs: Sends data to the server.