def set_received_message_callback(self, callback: Callable):
    self.received_message_callback = callback
def set_received_message_callback(self, callback: Callable):
    self.received_message_callback = callback