code: def Send(self, msg):
          
          if 'type' not in msg:
              return
  
          self.sock.send(json.dumps(msg))
          msg = self.sock.recv()
          return msg
docs: Add a note to the database on the server
          :param msg: The text of the note.
          :type msg: str
          :param tags: A list of tags to associate with the note.
          :type tags: list
          :returns: The message from the server
          :rtype: str