Function/method callbacks for message types