Add an onAccept callback to PendingConnection