def METHOD_NAME(self, topic_str: str, msg_dict: dict) -> None:
    try:
        msg_bytes = json.dumps(msg_dict).encode('UTF-8')
        self.socket.send_multipart([topic_str.encode('UTF-8'), msg_bytes])
    except Exception as err:
        print(err)